# HG changeset patch # User Arthur Lutz # Date 1337763840 -7200 # Node ID 24409e9c7c666551f5c3d659b1c3086806e78de8 # Parent e7f06e562a27a38d9242414769ef94c0195b1c1c [views] enable paginate toggle on RsetTableView (closes #2200675) diff -r e7f06e562a27 -r 24409e9c7c66 web/views/tableview.py --- a/web/views/tableview.py Wed May 23 11:00:29 2012 +0200 +++ b/web/views/tableview.py Wed May 23 11:04:00 2012 +0200 @@ -601,16 +601,19 @@ # may be listed in possible views return self.__regid__ == 'table' - def call(self, headers=None, displaycols=None, cellvids=None, **kwargs): + def call(self, headers=None, displaycols=None, cellvids=None, + paginate=None, **kwargs): if self.headers: self.headers = [h and self._cw._(h) for h in self.headers] - if (headers or displaycols or cellvids): + if (headers or displaycols or cellvids or paginate): if headers is not None: self.headers = headers if displaycols is not None: self.displaycols = displaycols if cellvids is not None: self.cellvids = cellvids + if paginate is not None: + self.paginable = paginate if kwargs: # old table view arguments that we can safely ignore thanks to # selectors