[web2py] Re: ANN: first pre-alfa release (v0.2) of Web2Py_CC

2010-08-31 Thread sociotech
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

[web2py] Re: storing hierarchical data in web2py database

2010-07-13 Thread sociotech
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

[web2py:16317] Re: Modified Preorder Tree Traversal in Web2Py?

2009-02-13 Thread sociotech
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

[web2py:16290] Modified Preorder Tree Traversal in Web2Py?

2009-02-13 Thread sociotech
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