web/views/navigation.py
changeset 7990 a673d1d9a738
parent 7766 a832677c0aa6
child 8009 75638a6ff159
equal deleted inserted replaced
7989:db76e8aaec29 7990:a673d1d9a738
   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)