Re: [Repoze-dev] url dispatch "ng" for repoze.bfg

2009-01-18 Thread Malthe Borch
Chris McDonough wrote: > Here's an example of some ZCML that would create a Routes route: > > name="blog_entry" > path="/blog/:id/:view_name" > context_factory=".blog.BlogEntry" > context_interfaces=".interfaces.IBlogEntry .interfaces.IContent" > There's something about

Re: [Repoze-dev] url dispatch "ng" for repoze.bfg

2009-01-18 Thread Chris McDonough
Malthe Borch wrote: > Chris McDonough wrote: >> Here's an example of some ZCML that would create a Routes route: >> >> > name="blog_entry" >> path="/blog/:id/:view_name" >> context_factory=".blog.BlogEntry" >> context_interfaces=".interfaces.IBlogEntry .interfaces.IContent" >>

Re: [Repoze-dev] url dispatch "ng" for repoze.bfg

2009-01-18 Thread Malthe Borch
2009/1/19 Chris McDonough : > ``factory`` would be fine. ``for`` doesn't describe what context_interfaces > does properly; ``provides`` might be better. I like that. As I understand it, you want to be able to attach a marker-interface based on the route that lead to that particular context (at le

Re: [Repoze-dev] url dispatch "ng" for repoze.bfg

2009-01-18 Thread Carlos de la Guardia
I think possible routes users are more likely to be regular Python developers with no Zope background, so I would suggest adding some mechanism to accomplish this using Python. Maybe extend the repoze.bfg.convention package for this. Carlos de la Guardia ___