You could create your own paginate decorator, based on the existing one, that will take the created Page and stuff it into the result (or parts of it)
-----Ursprüngliche Nachricht----- Von: "Sanjay" <[email protected]> Gesendet: 10.03.09 14:24:50 An: TurboGears <[email protected]> Betreff: [TurboGears] Re: Using @paginate with AJAX - TG 2.0 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 ______________________________________________________________________________ Nur bis 16.03.! DSL-Komplettanschluss inkl. WLAN-Modem für nur 17,95 EURO/mtl. + 1 Monat gratis!* http://dsl.web.de/?ac=OM.AD.AD008K15039B7069a --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

