Package trac :: Package util :: Module presentation :: Class Paginator

Class Paginator

source code

object --+
         |
        Paginator

Pagination controller
Instance Methods
 
__init__(self, items, page=0, max_per_page=10, num_items=None)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
__iter__(self) source code
 
__len__(self) source code
 
__nonzero__(self) source code
 
__setitem__(self, idx, value) source code
 
get_shown_pages(self, page_index_count=11) source code
 
displayed_items(self) source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties
  has_more_pages
  has_next_page
  has_previous_page

Inherited from object: __class__

Method Details

__init__(self, items, page=0, max_per_page=10, num_items=None)
(Constructor)

source code 
x.__init__(...) initializes x; see help(type(x)) for signature
Overrides: object.__init__
(inherited documentation)

Property Details

has_more_pages

Get Method:
unreachable.has_more_pages(self)

has_next_page

Get Method:
unreachable.has_next_page(self)

has_previous_page

Get Method:
unreachable.has_previous_page(self)