Re: [web2py] a beginner question about queries

2012-02-07 Thread Richard Vézina
Why not use represent? http://web2py.com/books/default/chapter/29/6?search=represent#Record-representation Richard On Tue, Feb 7, 2012 at 12:37 PM, shartha wrote: > Hello. > > I have this model: > db = DAL('sqlite://storage.sqlite') > > db.define_table('customers', >Field('name'), >Fie

[web2py] a beginner question about queries

2012-02-07 Thread shartha
Hello. I have this model: db = DAL('sqlite://storage.sqlite') db.define_table('customers', Field('name'), Field('age'), format = '%(name)s' ) db.define_table('purchases', Field('name',db.customers), Field('cart') ) db.purchases.name.requires = IS_IN_DB(db,db.customers,'%(nam