Thanks, Ben.  I should've updated this discussion with what I
discovered.

The parameters _are_ actually being quoted, as you said.  Looking at
the page source, spaces within URL's are being represented as %20, and
similar encoding happen with other characters.  I was confused by
seeing spaces in Firefox's Location and Status Bars, instead of a URL-
quoted string.  I don't know why I expected that.

Anyhow, I should, but I haven't had time yet to dive into Pylons code
yet to see how hard this would.  I'd like to have plus-quoted URL
strings instead of %20-quoted.  Do you know off the top of your head
how difficult it would be to use urllib.quote_plus for the Pylons'
quoting method, instead of what's currently being used?  Is it a
configuration option, by any chance?

Thanks,

- AJ

On Mar 31, 11:19 am, Ben Bangert <[email protected]> wrote:
> On Mar 27, 2009, at 2:12 PM, floob wrote:
>
> > 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.
>
> Since the action goes to a method in the controller, it can't have  
> spaces in it as Python won't recognize a function name with spaces. It  
> should be quoted in the URL when its not a {action}.
>
> Cheers,
> Ben
>
>  smime.p7s
> 3KViewDownload
--~--~---------~--~----~------------~-------~--~----~
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