599 # specific subclasses of this view usually don't want to be linkable |
599 # specific subclasses of this view usually don't want to be linkable |
600 # since they depends on a particular shape (being linkable meaning view |
600 # since they depends on a particular shape (being linkable meaning view |
601 # may be listed in possible views |
601 # may be listed in possible views |
602 return self.__regid__ == 'table' |
602 return self.__regid__ == 'table' |
603 |
603 |
604 def call(self, headers=None, displaycols=None, cellvids=None, **kwargs): |
604 def call(self, headers=None, displaycols=None, cellvids=None, |
|
605 paginate=None, **kwargs): |
605 if self.headers: |
606 if self.headers: |
606 self.headers = [h and self._cw._(h) for h in self.headers] |
607 self.headers = [h and self._cw._(h) for h in self.headers] |
607 if (headers or displaycols or cellvids): |
608 if (headers or displaycols or cellvids or paginate): |
608 if headers is not None: |
609 if headers is not None: |
609 self.headers = headers |
610 self.headers = headers |
610 if displaycols is not None: |
611 if displaycols is not None: |
611 self.displaycols = displaycols |
612 self.displaycols = displaycols |
612 if cellvids is not None: |
613 if cellvids is not None: |
613 self.cellvids = cellvids |
614 self.cellvids = cellvids |
|
615 if paginate is not None: |
|
616 self.paginable = paginate |
614 if kwargs: |
617 if kwargs: |
615 # old table view arguments that we can safely ignore thanks to |
618 # old table view arguments that we can safely ignore thanks to |
616 # selectors |
619 # selectors |
617 if len(kwargs) > 1: |
620 if len(kwargs) > 1: |
618 msg = '[3.14] %s arguments are deprecated' % ', '.join(kwargs) |
621 msg = '[3.14] %s arguments are deprecated' % ', '.join(kwargs) |