Example #1
0
 def pages(self, index, limit, total):
     return list(utils.generate_pages(index, limit, total))
Example #2
0
 def pages(self, index, limit, total):
     return list(utils.generate_pages(index, limit, total))
Example #3
0
 def build_links(self, request):
     for i in utils.generate_pages(self.number,
                                   self.paginator.page_limit,
                                   self.paginator.num_pages):
         yield self.create_link(request, i)
Example #4
0
 def build_links(self, request):
     for i in utils.generate_pages(self.number, self.paginator.page_limit,
                                   self.paginator.num_pages):
         yield self.create_link(request, i)