Gotchya, and a blank string (which is what is posted from the form) is not a
Null value :)

-Thadeus




On Tue, Oct 6, 2009 at 4:38 PM, mdipierro <[email protected]> wrote:

>
> notnull = True is enforced by the database, not by the framework. In
> the case of SQLFORM.factory there is no db io therefore it is not
> used.
>
> On Oct 6, 4:05 pm, Thadeus Burgess <[email protected]> wrote:
> > 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 [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to