/[papo]/papo/forms/cuit.py
ViewVC logotype

Diff of /papo/forms/cuit.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1 by styxman, Tue Feb 4 23:33:28 2003 UTC revision 1.2 by styxman, Fri Feb 7 21:04:13 2003 UTC
# Line 5  import re Line 5  import re
5    
6  def validate (cuit):  def validate (cuit):
7    # puede venir con o sin 'dashes'    # puede venir con o sin 'dashes'
8      if not cuit or cuit=='':
9        return 1
10    matcher= re.compile ('(\d\d)\-(\d\d\d\d\d\d\d\d)\-(\d)')    matcher= re.compile ('(\d\d)\-(\d\d\d\d\d\d\d\d)\-(\d)')
11    matches= matcher.match (cuit)    matches= matcher.match (cuit)
12    if matches:    if matches:

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26