David Gardner schrieb: > According to the changelog this was added in 1.0.6 in order to address > bug#1862. > > I was wondering if the calling of urllib.urlencode() could be controlled > via a configuration file setting? > > Reason is this produced a negative side effect for me (upgrading from > 1.0.4), in that I have a web based file browser, and I pass a path > variable to it like: > <webroot>:8080/?path=/dir/subdir1/subdir2 > > calling urlencode() on this produces: > <webroot>:8080/?path=%2Fdir%2Fsubdir1%2Fsubdir2 > > which means that it isn't as readable, or copy/pastable to my users. I > already patched my controllers.py file to revert to the previous behavior.
Why do your users care about that? If anything, get rid of the whole ?path=-stuff, and pass the path directly. And to make it configurable would essentially mean to make it wrong - according to http://tools.ietf.org/html/rfc3986#page-12 the slash is amongst the reserved delimiters, which are to be escaped. Diez --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

