pylons的分页类

原来pylons是有分页类的
是放在webhelpers下面

paginate(collection, page=None, per_page=10, item_count=None, query_args=None, **options)  ... 

Example:

# Using an SQLAlchemy object with assign_mapper under Pylons
# with an order_by passed in
c.paginator, c.people = paginate(model.Person,
                                 order_by=[model.Person.c.date])

看来有空得好好研究一下webhelpers

你可能感兴趣的:(C++,c,C#,Pylons)