[web2py] Re: onvalidate fails with compute=lambda field

2013-08-03 Thread Mika Sjöman
Thanks! On Friday, August 2, 2013 9:48:49 PM UTC+8, Anthony wrote: > > You mean you get an error when inserting duplicate data? Note, unique=True > is enforced by the database, not web2py, so violating it will simply result > in a database error (which results in a web2py ticket if you don't >

[web2py] Re: onvalidate fails with compute=lambda field

2013-08-02 Thread Anthony
You mean you get an error when inserting duplicate data? Note, unique=True is enforced by the database, not web2py, so violating it will simply result in a database error (which results in a web2py ticket if you don't explicitly catch the error yourself). Instead, you want to use the IS_NOT_IN_