I hope I'm just missing some obvious configuration option.  I've
searched both documentation and discussions, and haven't found a
solution.

I would like to automatically quote and unquote URL keyword segments
using Routes.  For example, in:

    map.connect("/cont/act/{param_1}", controller='cont',
action='act')

In my templates & actions, I would like:

    url(controller='cont', action='act', param_1='quote this string')

to automatically quote "quote this string" to "quote+this+string", or
"quote%20this%20string".  Similarly, my actions should automatically
receive unquote (unescaped) parameters.

I looked at some the routes.mapper.Mapper code, and found this
happening for querystring, but I haven't yet deciphered the generate
method to see if this is an option.


If this isn't currently an option, can anyone tell my why it shouldn't
be an option?  I'm still new to pylons, but I'd be willing to dig into
it a bit and patch the code if it's useful to others.

Thanks!

- aj

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" 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/pylons-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to