On Oct 9, 2006, at 4:29 PM, Nicky Ayoub wrote: We had to make some changes to paginate.py. Specifically we added the following code into class Paginate in the __init__(). It wraps the incoming list and dict structures so that the GET url used on the links can handle the nested structures. A colleague of my has a version that is recursive. The code here only goes a level deep. It was needed to pass form data along with the pagination. It's taken from Randall's patch for pagination. I'd strongly suggest using formencode.variabledecode.variable_encode for encoding the data NestedVariables decodes (using formencode.variabledecode.variable_decode) from the request parameters in TG's filter. Just in case one day this encoding format changes in FE (and to avoid wheel reinvention ;) ) Alberto --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~--- |
- [TurboGears] Re: paginate and query parameters Alberto Valverde
- [TurboGears] Re: paginate and query parameters Nicky Ayoub
- [TurboGears] Re: paginate and query parameters Nicky Ayoub
- [TurboGears] Re: paginate and query paramete... Randall
- [TurboGears] Re: paginate and query para... Randall
- [TurboGears] Re: paginate and query... Randall
- [TurboGears] Re: paginate and q... Ian Wilson
- [TurboGears] Re: paginate a... Ian Wilson
- [TurboGears] Re: paginate a... Randall
- [TurboGears] Re: paginate a... Randall
- [TurboGears] Re: paginate a... Ian Wilson

