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
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
2 matches
Mail list logo