equal
deleted
inserted
replaced
304 # method to be called to write pages index in the view and then limit the result |
304 # method to be called to write pages index in the view and then limit the result |
305 # set to the current page |
305 # set to the current page |
306 from cubicweb.view import View |
306 from cubicweb.view import View |
307 View.do_paginate = do_paginate |
307 View.do_paginate = do_paginate |
308 View.paginate = paginate |
308 View.paginate = paginate |
309 |
|
310 |
|
311 #@deprecated (see below) |
|
312 def limit_rset_using_paged_nav(self, req, rset, w, forcedisplay=False, |
|
313 show_all_option=True, page_size=None): |
|
314 if not (forcedisplay or req.form.get('__force_display') is not None): |
|
315 do_paginate(self, rset, w, show_all_option, page_size) |
|
316 |
|
317 View.pagination = deprecated('[3.2] .pagination is deprecated, use paginate')( |
|
318 limit_rset_using_paged_nav) |
|
319 limit_rset_using_paged_nav = deprecated('[3.6] limit_rset_using_paged_nav is deprecated, use do_paginate')( |
|
320 limit_rset_using_paged_nav) |
|