Esempio n. 1
0
File: result.py Progetto: pudo/aleph
 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)
Esempio n. 2
0
 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)
Esempio n. 3
0
 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)