[Zope3-Users] schema constraint sets required?

Benji York benji at zope.com
Mon Aug 22 09:28:39 EDT 2005

Adam Groszer wrote:
> I'd like to check a field if it is a valid e-mail address.
> It can be also empty.

First I'll answer your intended question:

> If I do not fill in a value in the browser "Required input is
> missing." message comes.

use "required = False"

Now I'll give you some advice you didn't want :)

Checking an email address for validity via a simple regex is impossible. 
  The actual grammar for valid email addresses is quite complex.  If you 
*really* want to do this, see this regex and be very afraid:
Benji York
Senior Software Engineer
Zope Corporation

More information about the Zope3-users mailing list