HI Chris Yeah , I thought that might be the answer.
Thanks anyway T On Fri, Sep 18, 2009 at 12:54 AM, Chris McDonough <chr...@plope.com> wrote: > Tim Hoffman wrote: >> >> Hi Folks >> >> I have always used traversal rather than routes(url dispatch) , but I >> just happen to have a requirement to potentially >> use such a schema however to complicate things I need to use a hybrid >> model, but I really need to use routes after traversal >> rather than before as described in >> http://docs.repoze.org/bfg/narr/hybrid.html#hybrid-chapter >> >> Does anyone think it would be possible ? >> >> For instance >> >> /a/b/collection/xxx/yyyy >> >> Where collection is where traversal would stop and ideally collection >> would then be the root factory for xxx/yyy >> >> I know I could use the xxx/yyy as a subpath argument to the default >> view on collection but in my case the combination of >> xxx/yyy would actually define the view I would like to use. >> >> Any one have an ideas or am I barking up the wrong tree and need to >> get the view for collection actually look up a view for xxx/yyy >> and return that instead. > > I'd just use the subpath personally. There's an API named > "render_view_to_response" in the view module that you can pass some > serialization of the subpath to in the default view for the collection. > > - C > > _______________________________________________ Repoze-dev mailing list Repoze-dev@lists.repoze.org http://lists.repoze.org/listinfo/repoze-dev