[Zope3-Users] schema constraint sets required?
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:
Senior Software Engineer
More information about the Zope3-users