[web2py] Cyclic tables

2010-08-10 Thread Oatman
Hi all, How do I create two tables that both refer to each other? Here's a simple example: db.define_table( 'item', Field('current_alias', 'db.item_alias') ) db.define_table( 'item_alias', Field('name'), Field('item', 'db.item') ) This throws "SyntaxError: Field: u

Re: [web2py] Cyclic tables

2010-08-10 Thread Jonathan Lundell
On Aug 10, 2010, at 10:55 AM, Oatman wrote: > Hi all, > > How do I create two tables that both refer to each other? Here's a > simple example: > > db.define_table( >'item', >Field('current_alias', 'db.item_alias') >) > > db.define_table( >'item_alias', >Field('name'), >F