"tml" <[EMAIL PROTECTED]> writes: > Anyone know how I can take a url like this: > > http://domain/loc/widget?id=1&j.0.0=tom&j.0.1=jerry&k=hello&f.0=woo&f.o=hoo > > and convert that into a (arg, kw) pair like cherrypy does when calling > the corresponding controller argument? > > I'm trying to render the widget internally based on the url keywords, > so I would like to call a the widget's function, but I can't pass it > the url string as is.
It is automatically done for you. Everything that gets to your controller is either in *args or **kwargs (arbitrary names that I use), if you don't explicitly provide the parameter name in your method. -- Jorge Godoy <[EMAIL PROTECTED]> --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

