Re: [web2py] Re: How to one2many ?

2011-07-27 Thread François Le Gal
gt; fields > > -- that's why you don't want to use 'fields' itself as a field name. > > > > Anthony > > > > > > > > > > > > > > > > On Wednesday, July 27, 2011 9:03:36 AM UTC-4, François Le Gal wrote: > > &

Re: [web2py] Re: How to one2many ?

2011-07-27 Thread François Le Gal
dname] File "/home/fanch/Logiciels/web2py/gluon/dal.py", line 4671, in __getitem__ return dict.__getitem__(self, str(key)) KeyError: 'SUBSTR(objects.fields,1,(2 - 1))' 2011/7/27 Massimo Di Pierro > try the one labeled as "nightly build" from the download

Re: [web2py] Re: How to one2many ?

2011-07-27 Thread François Le Gal
no error, or a better description of the > problem. > > Massimo > > On Jul 27, 6:07 am, François Le Gal wrote: > > That's the code i try : > > > > db_system = SQLDB("sqlite://db_system.db") > > > > db_system.define_table("fields&

Re: [web2py] How to one2many ?

2011-07-27 Thread François Le Gal
That's it ! I just change "fields" to "fields_tmp" and it works ! Thanks ! Regards François 2011/7/27 Johann Spies > On 27 July 2011 13:07, François Le Gal wrote: > >> That's the code i try : >> >> db_system = SQLDB("sqlite://db_sy

[web2py] How to one2many ?

2011-07-27 Thread François Le Gal
That's the code i try : db_system = SQLDB("sqlite://db_system.db") db_system.define_table("fields",Field("name")) db_system.define_table("objects",Field("name"),Field("fields",db_system.fields)) But when i execute this code, i got this error : File "/home/fanch/Logiciels/web2py/gluon/dal.py", l