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 <[email protected]> wrote:
> On 29 oct, 10:13, mdipierro <[email protected]> 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 [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---