Latest Version: 0.9.6.2

Page

Represents a single page from a paginated set.


Attributes

a first

Boolean indiciating if this page is the first.

a first_item

The number of the first item in the page.

a last

Boolean indicating if this page is the last.

a last_item

The number of the last item in the page.

a next

Next page if it exists, None otherwise.

a offset

Offset of the page, useful for database queries.

a previous

Previous page if it exists, None otherwise.

Methods

f __cmp__(self, page) ...

f __eq__(self, page) ...

f __init__(self, paginator, number) ...

Creates a new Page for the given paginator with the index number.

f __int__(self) ...

f window(self, padding=2) ...

See the source for more information.

Top