[Grok-dev] Re: my modest Trails implementation
Philipp von Weitershausen
philipp at weitershausen.de
Wed Oct 3 16:54:16 EDT 2007
Brandon Craig Rhodes wrote:
> Since I see the idea of "Trails" on the list of Sprint topics, but
> have not had time to create a "megrok.trails" in the last week, I'd
> better just share the code here in case any of the sprinters want to
> look at it or have it as a starting point.
>
> If you put the attached trails.py in your project, you can use it like
> this:
>
> from trails import TrailHead, Trail
>
> class MyTrailHead(TrailHead):
> grok.context(MyApplication)
> trails = [
> Trail('/people/:id', Person),
> Trail('/account/:username', Account),
> Trail('/calendar/:year/:month, MonthCalendar),
> ]
Hey, great job! Would be cool if this could become a megrok.trails. I
personally am quite interested in this, and the people I'm working with
as well.
--
http://worldcookery.com -- Professional Zope documentation and training
More information about the Grok-dev
mailing list