On Sunday, June 5, 2011 9:52:23 PM UTC-4, 黄祥 wrote: 
>
> i think notnull = TRUE is same like requires = IS_NOT_EMPTY()
>
 
Not exactly -- notnull=True is enforced by the database, whereas 
requires=IS_NOT_EMPTY() is a validator that is enforced by web2py forms (as 
well as the DAL validate_and_insert method).
 
Anthony
 

Reply via email to