On Saturday, January 9, 2016 at 12:31:47 PM UTC-5, Massimo Di Pierro wrote: > > feature. not a bug. "required" is not a form directive but a DAL > directive. Tells the DAL not to accept inserts if the field is missing. >
The problem is not that the database is throwing an exception due to missing data. Rather, the DAL automatically adds an IS_NOT_IN_DB validator when unique=True, and for some reason, that validator itself is throwing an exception (it's not failing validation, but literally encountering a Python exception), but only when dbio=False. The IS_NOT_IN_DB validator is triggering this exception in html.py: https://github.com/web2py/web2py/blob/master/gluon/html.py#L1864 Anthony -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.

