def page_url(self, page): if page < 1 or page > self.pages: return None offset = (page - 1) * self.parser.limit args = [('offset', str(offset))] args.extend(self.parser.items) return url_external(self.request.path, args)
def make_url(self, offset): args = [("offset", str(offset)), ("limit", str(self.parser.next_limit))] args.extend(self.parser.items) return url_external(self.request.path, args)