listener/app_engine/app/paginator.py
def page(self, number):
        "Returns a Page object for the given 1-based page number."
        bottom = (number - 1) * self.per_page
        top = bottom + self.per_page
        queryset = self.object_list.fetch((number * self.per_page)+1)
        results = queryset[bottom:top]
        try:
            queryset[top]
            self._num_pages = number + 1
        except IndexError:
            self._num_pages = number

        return Page(results, number, self)
Returns a Page object for the given 1-based page number.
Returns a Page object for the given 1-based page number.
Returns a Page object for the given 1 - based page number .
def page(self, number):
        bottom = (number - 1) * self.per_page
        top = bottom + self.per_page
        queryset = self.object_list.fetch((number * self.per_page)+1)
        results = queryset[bottom:top]
        try:
            queryset[top]
            self._num_pages = number + 1
        except IndexError:
            self._num_pages = number
        return Page(results, number, self)
def page ( self , number ) : bottom = ( number - 1 ) * self . per_page top = bottom + self . per_page queryset = self . object_list . fetch ( ( number * self . per_page ) + 1 ) results = queryset [ bottom : top ] try : queryset [ top ] self . _num_pages = number + 1 except IndexError : self . _num_pages = number return Page ( results , number , self )
Returns a Page object for the given 1-based page number.
Returns a Page object for the given 1 - based page number .
"Returns a Page object for the given 1-based page number."
self
number