I meant to say you can do db.define_table('y',Field('x','reference y'))
but not db.define_table('y',Field('x','reference z')) db.define_table('z',..) you can only reference a table defined or being defined not a table that will be defined. On Oct 29, 8:49 pm, DenesL <denes1...@yahoo.ca> wrote: > On 29 oct, 10:13, mdipierro <mdipie...@cs.depaul.edu> wrote: > > > It workd for self references but not if y is yet to be defined. > > huh? self reference means 'y' is being defined. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web2py@googlegroups.com To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~----------~----~----~----~------~----~------~--~---