[Zope-dev] ZPatterns question
Christian Scholz
cs@comlounge.net
Wed, 3 Jan 2001 23:08:49 +0100
Hi Steve!
On Thu, Dec 28, 2000 at 10:45:46PM +0000, Steve Alexander wrote:
> Steve Spicklemire wrote:
>
> >
> > CS> 2. Is it planned to provide something like a virtual folder
> > CS> which acts like a normal object manager but is controlled via
> > CS> ZPatterns (so actually something like Folder with Customizer
> > CS> Support just without the "anchor" in ZODB. (would also
> > CS> require some mechanism asked for in 1.)
> >
> > Hmmm... I'm not sure what you're after here. Why not just use
> > a Specialist? In what sense do you want it to be virtual?
> > (Are you looking for a dynamic traversal interface that
> > would allow you to map URLs to objects that are managed by
> > ZPatterns? Can you give an example?)
>
> Reading this just after reading the source to Specialists.py, I had a
> thought; and tried it out; and it works! :-)
>
> You can use SkinScript to define __bobo_traverse__ for a particular kind
> of DataSkin in a Specialist.
>
> For example:
>
> WITH SELF COMPUTE __bobo_traverse__=traversal_method
that's very cool :)
I just created some base class for this from which my ZClasses are derived
but nice to know that it's also possible without this base class.
(though for this application it's easier with this base class as
it's easier to configure then)
cheers,
Christian