Does Database validators work in PY4WEB?

51 views
Skip to first unread message

sandeep patel

unread,
Sep 21, 2019, 11:15:43 AM9/21/19
to web2py-users
Hello Massimo, 

I have added IS_EMPTY_OR validator in the field. I am getting an error.

Is there any way to add a validator in the field in py4web?

Please have a look at attached file.



Thanks
SP



validator.PNG

Massimo Di Pierro

unread,
Sep 21, 2019, 11:36:22 AM9/21/19
to web2py-users
They work the same as in web2py but you must import them

from pydal.validators import *

sandeep patel

unread,
Sep 22, 2019, 2:49:03 AM9/22/19
to web...@googlegroups.com
Thanks Massimo,
Now, it's working fine.




--
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 web2py+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/web2py/8586c6d4-bd2e-4a50-b127-82b1d7dd5c45%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages