On 2/11/07, Christopher Arndt <[EMAIL PROTECTED]> wrote: > > Id4ever schrieb: > > Is there a built-in function for converting a dictionary to a query > > string? > > from turbogears import url > > (which also takes care of adapting your URL to the server.webpath config > setting) > > also: > > from urllib import urlencode > > does only the dict -> query params thing. > this one is safer because it will take care of the base_url and other things, you shouldn't know about (that's why it's a buildin-function :p)
coding things like this will be a must for newer versions with WSGI and CP3, or your code will not work when mounted at some place other then / > Chris --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

