On Tue, Sep 1, 2009 at 11:50 AM, Mike Orr<[email protected]> wrote:
> 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.
There has also been discussion about having Routes itself call another
WSGI application. Something like map.connect("/admin",
wsgi_app=OtherApplication()). Perhaps this should be accelerated as a
general solution.
--
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
-~----------~----~----~----~------~----~------~--~---