kevin at mcweekly.com
Fri May 2 15:09:02 EDT 2008
Brandon Craig Rhodes wrote:
> Kevin Smith <kevin at mcweekly.com> writes:
>> (Brandon I think I may have a few ideas to bounce of off you to
>> expand megrok.trials, email if you're interested)
> Yes! I'd love to hear ideas. If you'd like, please insult it and
> suggest improvements right here on the list in front of everyone, :-)
> so that as many ideas and perspectives as possible can be offered.
> Start a new thread with "Trails" in the name, though. :-)
(I suppose theirs no room for introverts in open source anymore)
I think megrok.trails is great, my thoughts on a way of expanding it
are along the lines of the following.
grok.name('mytrails') #default from class name
# the trails attribute is left blank
grok.name('mytrails::/news') #signifys MyTrails as trail head and /news as child url
grok.name('mytrails::/news/archive') # another page
grok.name('mytrails::/news/archive/++subpath++') # stuffs remaining url parts
# as signifyed by ++subpath++ into self.subpath Zope2 style
In my own code, I use grok.context(Traversable) instead of TrailStop,
but I want to retain the metaphor here. There's lots of room for
improvement, but I think you can get the drift.
It's pretty concise and easy to use. I've been using something similar
successfully for over a year.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Grok-dev