#2 Missing PostalCode validator

closed
nobody
None
5
2003-01-11
2002-12-30
Edmund
No

The first half of the Validator.PostalCode class is
missing from CVS.

It was obviously deleted by accident, leaving just the
following fragment in Validator.py:

_postalCodeRE = re.compile(r'^\d\d\d\d\d(?:-\d\d\d\d)?$')
def PostalCode(**kw):
if not kw.setdefault('messages',
{}).has_key('invalid'):
kw['messages']['invalid'] = 'Please enter a zip
code (5 digits)'
return Regex(_postalCodeRE, **kw)

Discussion

  • Edmund
    Edmund
    2003-01-11

    Logged In: YES
    user_id=91623

    I'm blind. The code is in fact the missing PostalCode
    validator. Ignore this bug. It's bogus.

     
  • Edmund
    Edmund
    2003-01-11

    • status: open --> closed