I am studying web2py. I read example open source code. In one application (storpy), the programmer uses T.lazy
repeatedly inside the models file db.py
such as this:
...
Field('comment', 'text'),
Field('cover', 'upload', autodelete=True))
T.lazy = False
db.dvds.title.requires = [IS_NOT_EMPTY(error_message=T('Missing data') + '!'), IS_NOT_IN_DB(db, 'dvds.title', error_message=T('Already in the database') + '!')]
...
T.lazy = True
Why does the programmer set T.lazy
first to False
then to True
?