Marco Mans wrote at 2005-7-25 14:28 +0200:
> ...
>In zope I want to display something like this:
>Level1
> - Item1
> - Item2
>   - Level 11
>     - Item 111
>     - Item 112
>   - Level 12
>     - Item 111
>     - Item 112
>   - Level X
>     -Item X
>
>The problem is that I don't know how much nested levels I got.
>In python I would write a script that calls itself:

Thus, you write a PythonScript which processes your nested
structure into a list of "level, item" tuples.
In ZPT, you then use a single "repeat" iterating over this
list and presenting the items on the correct "level".

-- 
Dieter
_______________________________________________
ZPT mailing list
ZPT@zope.org
http://mail.zope.org/mailman/listinfo/zpt

Reply via email to