Thanks Stefaan and Vasile for your answers!!
I will try with the function :)
El lun, 30-05-2011 a las 06:29 -0700, stefaan escribió:
> sorry i sent by accident! i hadn't finished editing the code :(
>
> Since the views allow you to define functions, you I would expect you
> can use a recursive call
> to display the child items (warning the following code has never seen
> a python interpreter):
>
> define a function:
>
> {{def showtree(tree):}}
> <ul>
> {{for i in tree.items:}}
> <li>
> Displaying child {{=i}}
> {{showtree(i)}}
> </li>
> {{pass}}
> </ul>
> {{return}}
>
> usage:
>
> {{showtree(mytree)}}