[Zope] Validate fields?

Mauricio mauricio@hiper.com.br
Thu, 26 Aug 1999 08:27:54 -0300


Andreas Kostyrka wrote:
> 
> On Thu, 26 Aug 1999, Juergen Specht wrote:
> 
> > Hi there,
> >
> > how can i validate input fields in Zope?
> > If somebody fills something in a input field and i expect
> > an email-adress, how can i check the right syntax?
> Well, try this:
> <dtml-if "'@' in field">
>   GOOD Email address?
> </dtml-if>
> 
> > I know how to do it in perl with regular expressions but in
> Well, somebody posted a patch or so to add the regular expression module
> functionality to the DTML namespace ;)
> 

Or you can do a External Module to use Regular Expressions...

-- 
Mauricio Souza Lima <mauricio@hiper.com.br>
Hiperlógica <http://hiper.com.br>          
Automação de web-sites | Website automation
São Paulo | Brasil | Fone: +55-11-251-4894