[Zope3-Users] Recursion using viewlets.
Stephan Richter
srichter at cosmos.phy.tufts.edu
Mon Oct 30 10:16:09 EST 2006
On Wednesday 11 October 2006 14:40, Alec Munro wrote:
> After a very thorough schooling in the use of viewlets in my other
> thread, I thought it might be better to start a new one for this
> topic. What's the recommended practice for dealing with recursion
> using viewlets?
> In my case, I have a hierarchy of objects, each implementing
> IContainSomething, and I want to display the entire hierarchy.
>
> I'm sure this is a simple case, and there's probably even good example
> code freely available somewhere, but I haven't yet found it.
Actually, I have not used viewlets this way. Here is what I would do.
1. Use zope.app.tree to build the tree.
2. Then look up a view displaying the object.
You will not need viewlets at all.
Regards,
Stephan
--
Stephan Richter
CBU Physics & Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development and Training
More information about the Zope3-users
mailing list