Excellent, thanks. Also something to note: apparently you can't have a table named "group".* Changing the table to "grouping" fixed this.
*I was getting [ "OperationalError: near "group": syntax error ]. I'm assuming this is because "group" is an SQL keyword. Thanks again. On Sep 27, 9:43 am, mdipierro <[email protected]> wrote: > db.define_table('group', > ... > Field('parent', 'referece group'),#, required=False), > ... > ) > > On Sep 27, 12:58 am, BioNip <[email protected]> wrote: > > > See:http://pastie.textmate.org/632136 > > > As you can see I have a field that references it's own table. I get an > > error ("KeyError: group") on the "parent" line, because (I assume) the > > table hasn't been created yet for it to reference. Is there anyway > > around this? > > > Thanks. > > > -nip --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

