To add some detail, when values are passed to validators, the validator returns a tuple like (value, None) or (value, 'error message'), and the returned value can potentially be transformed by the validator (as in this case).
Anthony On Wednesday, July 18, 2018 at 9:51:40 AM UTC-4, Leonel Câmara wrote: > > Nowadays I mostly use web2py's code as my documentation so I simply looked > at the code for IS_EMPTY_OR in: > > https://github.com/web2py/web2py/blob/master/gluon/validators.py > > Of course I already suspected the problem was there which just comes from > experience using and developing web2py. > -- 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.

