On Thu, Apr 3, 2008 at 9:56 AM, Ben Bangert <[EMAIL PROTECTED]> wrote:
> On Apr 3, 2008, at 8:20 AM, Ian Bicking wrote:
>
>
> > The WSGI spec refers to the CGI spec, which indicates that PATH_INFO
> > should be url-unquoted. Unfortunately as a result there's no way to
> > distinguish %2f from /. I would recommend translating this character to
> > something else.
> >
>
> Alternatively, you can put the variable in as a query argument, where
> Routes will ignore it.
But doesn't the wildcard variable type exist precisely for this case?
map.connect("images/*id", controller="main", action="image")
matches:
images/ABC.jpg
images/123/456
images/nature/winter/ABC.jpg
--
Mike Orr <[EMAIL PROTECTED]>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---