On Tue, Sep 1, 2009 at 11:27 AM, Iain Duncan<[email protected]> wrote:
>
> Hey, it does work, but you had a typo.
>
> map.connect("/admin{path_info:.*}", controller="admin")
>
> ( no '/' between admin and {path_info} )

I guess, although then it would match "/administration" too.

How does an expression like
"/admin{path_info:/.*}"  or
"/admin{path_info:$|/.*}"
work?

Otherwise I'm not sure what to do about a bare "/admin" URL.  Maybe:
map.connect("/admin", controller="admin", path_info="/")
If that doesn't change the environment's path_info, it may be worth
patching Routes to allow it.

-- 
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to