# HG changeset patch # User Aurelien Campeas # Date 1319543487 -7200 # Node ID 1a1b23c37013108c0c3b3ea99838e6972c05af34 # Parent b9de628f90e6d6a29541429d21c43a9a3da6c553 [tableview,jsoncontroller] the json controller must check view.handle_pagination as well & the old table view also handles pagination internally diff -r b9de628f90e6 -r 1a1b23c37013 web/views/basecontrollers.py --- a/web/views/basecontrollers.py Mon Oct 24 13:52:24 2011 +0200 +++ b/web/views/basecontrollers.py Tue Oct 25 13:51:27 2011 +0200 @@ -353,7 +353,7 @@ if vtitle: stream.write(u'

%s

\n' % vtitle) paginate = True - if paginate: + if paginate and not view.handle_pagination: view.paginate() if divid == 'pageContent': stream.write(u'
') diff -r b9de628f90e6 -r 1a1b23c37013 web/views/tableview.py --- a/web/views/tableview.py Mon Oct 24 13:52:24 2011 +0200 +++ b/web/views/tableview.py Tue Oct 25 13:51:27 2011 +0200 @@ -812,6 +812,7 @@ 'textExtraction': JSString('cw.sortValueExtraction'), 'selectorHeaders': 'thead tr:first th', # only plug on the first row } + handle_pagination = True def form_filter(self, divid, displaycols, displayactions, displayfilter, paginate, hidden=True):