[views] enable paginate toggle on RsetTableView (closes #2200675) stable
authorArthur Lutz <arthur.lutz@logilab.fr>
Wed, 23 May 2012 11:04:00 +0200
branchstable
changeset 8417 24409e9c7c66
parent 8416 e7f06e562a27
child 8418 3f87aa655466
[views] enable paginate toggle on RsetTableView (closes #2200675)
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