Ok, I am doing like this:

    @expose("json")
    def common_test(self, **params):
        from webhelpers.paginate import Page

        query = SAClass.query
        page = Page(query, items_per_page=7, page=3)
        return {'query' : page.items, 'last_page': page.last_page}

I think there is be a way using "@paginate" and "tmpl_context," but I
could not make it happen. Like to have guidance.

Sanjay

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears" 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/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to