Package coprs :: Package views :: Package apiv3_ns :: Class ListPaginator
[hide private]
[frames] | no frames]

Class ListPaginator

source code


The normal `Paginator` class works with a SQLAlchemy query object and therefore can do limits and ordering on database level, which is ideal. However, in some special cases, we already have a list of objects fetched from database and need to adjust it based on user pagination preferences, hence this special case of `Paginator` class.

It isn't efficient, it isn't pretty. Please use `Paginator` if you can.

Instance Methods [hide private]
 
get(self) source code

Inherited from Paginator: __init__, map, meta, to_dict

Class Variables [hide private]

Inherited from Paginator: LIMIT, OFFSET, ORDER

Method Details [hide private]

get(self)

source code 
Overrides: Paginator.get