> > db = DAL(lazy_tables=True) > db.define_table('person',Field('name'),Field('age','integer'), > on_define=lambda table: [ > table.name.set_attributes(requires=IS_NOT_EMPTY(),default=''), > > table.age.set_attributes(requires=IS_INT_IN_RANGE(0,120),default=30), > ]) > > and the attributes will be set lazily. This is a good idea! Thanks > Jonathan. >
Syntax is kind of clunky. How difficult would it be to make lazy Fields so attributes are automatically lazy? Anthony --