web/views/navigation.py
branchtls-sprint
changeset 873 3d9df99b0bfa
parent 834 50d5ca1180b1
child 1657 14e95f7aa033
equal deleted inserted replaced
872:78f03d6a1505 873:3d9df99b0bfa
   144         self.w(u' %s' % self.next_link(params))
   144         self.w(u' %s' % self.next_link(params))
   145         self.w(u'</div>')
   145         self.w(u'</div>')
   146 
   146 
   147 
   147 
   148 def limit_rset_using_paged_nav(self, req, rset, w, forcedisplay=False,
   148 def limit_rset_using_paged_nav(self, req, rset, w, forcedisplay=False,
   149                                show_all_option=True, page_size = None):
   149                                show_all_option=True, page_size=None):
   150     showall = forcedisplay or req.form.get('__force_display') is not None
   150     showall = forcedisplay or req.form.get('__force_display') is not None
   151     nav = not showall and self.vreg.select_component('navigation', req, rset,
   151     nav = not showall and self.vreg.select_component('navigation', req, rset,
   152                                                      page_size=page_size)
   152                                                      page_size=page_size)
   153     if nav:
   153     if nav:
   154         # get boundaries before component rendering
   154         # get boundaries before component rendering