# HG changeset patch # User Sylvain Thénault # Date 1275649708 -7200 # Node ID 1340f14c38c964593d505cbab4d2dae789ef133a # Parent 7bd6a8a126b8c199b6746283e96f88b1896c64af [table] propagate paginate diff -r 7bd6a8a126b8 -r 1340f14c38c9 web/views/tableview.py --- a/web/views/tableview.py Fri Jun 04 13:07:57 2010 +0200 +++ b/web/views/tableview.py Fri Jun 04 13:08:28 2010 +0200 @@ -46,7 +46,7 @@ finalview = 'final' def form_filter(self, divid, displaycols, displayactions, displayfilter, - hidden=True): + paginate, hidden=True): rqlst = self.cw_rset.syntax_tree() # union not yet supported if len(rqlst.children) != 1: @@ -60,7 +60,8 @@ wdgs = [wdg for wdg in wdgs if wdg is not None] if wdgs: self._generate_form(divid, baserql, wdgs, hidden, - vidargs={'displaycols': displaycols, + vidargs={'paginate': paginate, + 'displaycols': displaycols, 'displayactions': displayactions, 'displayfilter': displayfilter}) return self.show_hide_actions(divid, not hidden) @@ -162,7 +163,7 @@ self.w(u'

%s

\n' % title) if displayfilter: actions += self.form_filter(divid, displaycols, displayfilter, - displayactions) + displayactions, paginate) elif displayfilter: actions += self.show_hide_actions(divid, True) self.w(u'
' % divid) @@ -324,7 +325,7 @@ title = None def call(self, title=None, subvid=None, headers=None, divid=None, - displaycols=None, displayactions=None, mainindex=None): + paginate=False, displaycols=None, displayactions=None, mainindex=None): """Dumps a table displaying a composite query""" try: actrql = self._cw.form['actualrql'] @@ -346,7 +347,8 @@ if mainindex is None: mainindex = self.main_var_index() if mainindex is not None: - actions = self.form_filter(divid, displaycols, displayactions, True) + actions = self.form_filter(divid, displaycols, displayactions, + paginate, True) else: actions = () if not subvid and 'subvid' in self._cw.form: