[web2py] Re: recursive tree views

2011-05-30 Thread stefaan
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

[web2py] Re: recursive tree views

2011-05-30 Thread stefaan
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

Re: [web2py] Re: recursive tree views

2011-05-30 Thread Daniel Gonzalez
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