Using

SQLFORM.factory(Field('name', notnull=True))

If you submit the form without entering anything into name it will pass
form.accepts.

Just reading, it seems as if you have to specify requires=IS_NOT_EMPTY()

Then what is the purpose of notnull=True?

-Thadeus

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to