Glauco schrieb: > @tg.paginate(dynamic_limit='limit',var_name='grid_params', > allow_limit_override=False) > def index(self,tg_errors=None, **data): > > In this example i expect to find the pagination variable ( > tg_paginate_no, tg_paginate_ordering and so on ) inside the **data dict, > but i think the paginate function use and destroy this information . > i've tryed tg.paginate.* but nothing... :-(
The idea behind paginate is that everything is handled transparently. So the controller does not see these parameters, and does not need them. You can access tg.paginate only in the template (but if you use the standard template, you won't even need that). If you really must access the parameters in the controller, you can use cherrypy.request.params. > TurboGears 1.0.3.2 You should really use the latest 1.0.7. There have been many improvements, particularly concerning paginate. -- Christoph --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

