rset.py
changeset 4023 eae23c40627a
parent 3998 94cc7cad3d2d
child 4150 2835482b8daf
equal deleted inserted replaced
4022:934e758a73ef 4023:eae23c40627a
   255         with limit/offset correctly set according to maximum page size and
   255         with limit/offset correctly set according to maximum page size and
   256         currently displayed page when necessary
   256         currently displayed page when necessary
   257         """
   257         """
   258         # try to get page boundaries from the navigation component
   258         # try to get page boundaries from the navigation component
   259         # XXX we should probably not have a ref to this component here (eg in
   259         # XXX we should probably not have a ref to this component here (eg in
   260         #     cubicweb.common)
   260         #     cubicweb)
   261         nav = self.vreg['components'].select_or_none('navigation', self.req,
   261         nav = self.vreg['components'].select_or_none('navigation', self.req,
   262                                                      rset=self)
   262                                                      rset=self)
   263         if nav:
   263         if nav:
   264             start, stop = nav.page_boundaries()
   264             start, stop = nav.page_boundaries()
   265             rql = self._limit_offset_rql(stop - start, start)
   265             rql = self._limit_offset_rql(stop - start, start)