On Sat, 2011-09-03 at 19:55 -0400, Chris McDonough wrote:
> On Sat, 2011-09-03 at 16:16 -0700, jazg wrote:
> > Using the same script but changing these two functions:
> > 
> > """
> > def level1_include(config):
> >     config.add_route('level1', '/')
> >     #config.include(level2_include, route_prefix='/level2')
> >     config.include(level2_include)
> > 
> > def level2_include(config):
> >     #config.add_route('level2', '/')
> >     config.add_route('level2', '/level2/')
> > """
> > 
> > I want this to have the very same effect, because even though I
> > haven't included level2_include with a second prefix, it should still
> > carry over the "/level1" prefix because I'm calling it from within
> > level1_include. Instead it just creates the route "/level2/" at the
> > root.
> 
> Yes, that is a bug.  Thanks for the report.
> 
> > My actual problem is concerning add_static_view:
> 
> add_static_view will work itself out once I fix the bug.  I don't think
> the debugtoolbar is involved in this particular bug (although we may
> find a separate bug involving the toolbar).  Tracking the original bug
> here:
> 
> https://github.com/Pylons/pyramid/issues/260

I've fixed this on the Pyramid trunk (details are in the issue).  Maybe
you could give it a shot and see if it also fixes your add_static_view
issue:

   $ git pull git://github.com/Pylons/pyramid.git
   $ cd pyramid
   $ {yourvirtualenv}/bin/python setup.py develop

- C



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