Hello all, I am trying to use PaginateDataGrid to view and sort a subset of records, where the filter value is passed into the controller method, like this:
def jobdetail(self, jobId) It looks like any query parameters that are required parts of the controller method's signature are gobbled in the process of serving the request. In this case, the jobId parameter is not included in any of the pagination or column sorting links that are generated by the widget framework. However, if I make a change to the controller so that the parameter I need is optional, the jobId parameter is carried along for the ride, tacked on to the end of all the generated sorting/pagination links. My workaround is to make the jobId parameter optional in the method, and then immediately pull it from the underlying cherrypy request, like so: def jobdetail(self, jobId=None): jobId = cherrypy.request.params['jobId'] This _appears_ to be working as desired. All of the pagination and column sorting links have jobId tacked onto the end of the querystring, and the links behave as expected. Is there a better/simpler way of implementing this behavior without altering the pagination code or building custom widgets? Thanks, Mike --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

