[Zope] Validation tags

Christopher Petrilli petrilli@digicool.com
Wed, 11 Aug 1999 10:34:26 -0400


> did every someone write validation tags?
> 
> stuff like:
> 
> <dtml-if name=email_address type=email>
> or
> <dtml-if name=phone_num type=us_phone>
>
> Basically I want to replace the stupid JS stuff.

What is a phone number? :-) There are the following formats in use:

    +1 555 555 1212 (ISO standard)

    (555) 555-1212

    555.555.1212

    555-555-1212

And I'm sure dozens more :-) The problem with "validation" is that it's
*very* application dependent.  You might also want to validate that the area
code matches the state, etc.

Chris
--
| Christopher Petrilli        Python Powered        Digital Creations, Inc.
| petrilli@digicool.com                             http://www.digicool.com