On Wed, 4 Apr 2007 at 13:15, Glauco wrote: > tml ha scritto: >> Hello, >> >> 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. >> >> thanks. >> > > urllib.urlencode(dict( pippo=4, pluto='paperino') )
I think he's looking for urldecode, but that doesn't seem to exist, at least not in urllib. The function must exist somewhere in TG though, since it does it :) --David --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

