On Tue, 2009-09-01 at 11:52 -0700, Mike Orr wrote:
> 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.

That would be cool, because not only could it 'do the right thing' for
the env, but it would also mean one wouldn't have to make the dummy
controller file right?

thanks
iain



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