equal
deleted
inserted
replaced
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) |