You might want to check out Massimo's code for Modified Preorder Tree
Traversal, which is an extremely efficient way of storing tree
structures in a database:
http://groups.google.com/group/web2py/browse_thread/thread/70efddab62dfe73
On Jul 13, 11:59 am, "topher.baron" wrote:
> I'm looking forwa
Stef,
Thanks for developing what looks like an awesome environment for
web2py.
I tried installing it with your recommended dependencies on my Ubuntu
10.04 system (Python 2.6) and got the following error:
Traceback (most recent call last):
File "Web2py_CC.py", line 24, in
import wx.lib.agw
Just wondering if anyone has implemented modified preorder tree
traversal (MPTT) functions for Web2Py yet. MPTT is an efficient
approach to organizing hierarchically-related records (e.g., nested
menus, parent/child relationships, etc.) in a database.
I was hoping someone here might've already im
tree.ALL)
> > add_node('Red','Fruit')
> > print db().select(db.tree.ALL)
> > print ancestors('Red',db.tree.title)
> > print descendants('Fruit',db.tree.title)
>
> > test()
>
> > OUTPUT:
> > tree.id,tre
4 matches
Mail list logo