Removed some debug accidentally committed in r13201.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@13205 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
861baecd84
commit
df1cc366e4
|
@ -21,22 +21,16 @@ class RegexValidator(object):
|
||||||
code = 'invalid'
|
code = 'invalid'
|
||||||
|
|
||||||
def __init__(self, regex=None, message=None, code=None):
|
def __init__(self, regex=None, message=None, code=None):
|
||||||
print 'test'
|
|
||||||
if regex is not None:
|
if regex is not None:
|
||||||
print 1
|
|
||||||
self.regex = regex
|
self.regex = regex
|
||||||
if message is not None:
|
if message is not None:
|
||||||
print 2
|
|
||||||
self.message = message
|
self.message = message
|
||||||
if code is not None:
|
if code is not None:
|
||||||
print 3
|
|
||||||
self.code = code
|
self.code = code
|
||||||
|
|
||||||
print 4
|
|
||||||
if isinstance(self.regex, basestring):
|
if isinstance(self.regex, basestring):
|
||||||
print 5
|
|
||||||
self.regex = re.compile(regex)
|
self.regex = re.compile(regex)
|
||||||
print 'REGEX', type(self.regex), self.regex
|
|
||||||
def __call__(self, value):
|
def __call__(self, value):
|
||||||
"""
|
"""
|
||||||
Validates that the input matches the regular expression.
|
Validates that the input matches the regular expression.
|
||||||
|
|
Loading…
Reference in New Issue