241: Added additional index=None kwarg to errors.ValidationError.__init__()

This commit is contained in:
Jason Gerard DeRose committed 2008-09-03 18:48:58 +00:00
1 parent 9548b4b951
commit 9b9615df79
1 file changed
+2 -1
+2 -1
View File
@@ -112,10 +112,11 @@ class IPAError(Exception):
class ValidationError(IPAError):
msg = 'invalid %r value %r: %s'
def __init__(self, name, value, error):
def __init__(self, name, value, error, index=None):
self.name = name
self.value = value
self.error = error
self.index = index
IPAError.__init__(self, name, value, error)