Re: [web2py] DAL() unusable ?

2010-11-11 Thread rams anu
also me.. On 11/11/2010, Mirek Zvolský wrote: > I have simplest model: > > db.define_table('company', > Field('name'), > Field('created_by', 'reference person')) > db.define_table('person', > Field('last_name'), > Field('company_id', 'reference company')) > > but I receive error:

Re: [web2py] DAL() unusable ?

2010-11-11 Thread Mariano Reingart
The error is with 'reference person'? You have to define 'person' previously. Best regards, Mariano Reingart http://www.sistemasagiles.com.ar http://reingart.blogspot.com 2010/11/11 Mirek Zvolský : > I have simplest model: > > db.define_table('company', >    Field('name'), >    Field('created

[web2py] DAL() unusable ?

2010-11-11 Thread Mirek Zvolský
I have simplest model: db.define_table('company', Field('name'), Field('created_by', 'reference person')) db.define_table('person', Field('last_name'), Field('company_id', 'reference company')) but I receive error: File "C:\Python27\Lib\site-packages\web2py\gluon\sql.py", line 1