Because i just wanna store object's fields which are not database fields :)
2011/7/27 Massimo Di Pierro <[email protected]> > now web2py will "explain" the error. > > On Jul 27, 9:18 am, Anthony <[email protected]> wrote: > > Note, db.[tablename].fields stores a list of the names of the table's > 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: > > > That's it ! I just change "fields" to "fields_tmp" and it works ! > Thanks ! > > > > > Regards > > > François > > > > > 2011/7/27 Johann Spies <[email protected]> > > > > >> On 27 July 2011 13:07, François Le Gal <[email protected]> wrote: > > > > >>> 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.fie > lds)) > > > > >>> Try another name for 'fields' and see what happens. > > > > >> Regards > > >> Johann > > > > >> -- > > >> May grace and peace be yours in abundance through the full knowledge > of > > >> God and of Jesus our Lord! His divine power has given us everything > we need > > >> for life and godliness through the full knowledge of the one who > called us > > >> by his own glory and excellence. > > >> 2 Pet. 1:2b,3a >

