Hello,
I am seeing a problem when attempting to use the paginator.
records= meta.Session.query(model.A).filter(mddel.A.tag==id)
c.paginator = paginate.Page(
records,
page=int(request.params.get('page',1)),
items_per_page =2,
)
I am seeing the error:
Sorry yor collection type is not supported by the paginate module, You
can either provide a list, a tuple, and SQLAlchemy 0.4 select object
etc.
The line its complaining on is "items_per_page".
If somebody could be kind enough to enlighten me on the problem that
would be great.
Thanks,
Garyc
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"pylons-discuss" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/pylons-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---