On Jan 8, 8:14 pm, Chris McDonough <chr...@plope.com> wrote: > On Sun, 2012-01-08 at 11:57 -0800, Martin Aspeli wrote: > > > On Jan 7, 2:09 pm, Martin Aspeli <optil...@gmail.com> wrote: > > > On Jan 6, 8:47 am, Chris McDonough <chr...@plope.com> wrote: > > > > > On Thu, 2012-01-05 at 23:49 -0800, Martin Aspeli wrote: > > > > > > On Jan 6, 7:06 am, Chris McDonough <chr...@plope.com> wrote: > > > > > > Thanks, I'm tracking this > > > > > > athttps://github.com/Pylons/pyramid/issues/394 > > > Does this also fix the following issue: > > > @view_defaults(context=models.Root) > > class RootViews(object): > > > def __init__(self, request): > > self.request = request > > > @view_config(name='', request_type=IDesktopRequest, renderer='../ > > templates/home.pt') > > def home(self): > > > return { > > } > > > This view will match not just the root, but also any item traversed to > > from the root. If I move the context=models.Root discriminator to the > > view_config directive, it matches only the root. > > Can you try the 1.3-branch and let me know? > > git clone git://github.com/Pylons/pyramid.git > cd pyramid > git checkout 1.3-branch > yourvirtualenv/bin/python setup.py develop
It seems to work with 1.3a5, so I'm guessing it did. Thanks! Martin -- You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To post to this group, send email to pylons-discuss@googlegroups.com. To unsubscribe from this group, send email to pylons-discuss+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en.