I answer myself: RTFM
a=SQLField
(name,'string',length=32,required=False,default=None,requires=IS_NOT_EMPTY
(),notnull=False,
unique=False,uploadfield=None,widget=None, label=None)
Why doesn't put this on the cookbook or t2 manual with the examples?
taken from the t2.pdf
* models/db.py
1 db=SQLDB(’sqlite://storage.db’)
2 db.define_table(’puppy’,
3 SQLField(’name’),
4 SQLField(’image’,’upload’))
5 db.puppy.name.requires=IS_NOT_EMPTY()
Can be:
* models/db.py
1 db=SQLDB(’sqlite://storage.db’)
2 db.define_table(’puppy’,
3 SQLField(’name’,label="Puppy name"),
4 SQLField(’image’,’upload’,label="Photo"))
5 db.puppy.name.requires=IS_NOT_EMPTY()
Mauricio