From 9b9615df79d27a74b3cefd1dab708c98a5832b71 Mon Sep 17 00:00:00 2001 From: Jason Gerard DeRose Date: Wed, 3 Sep 2008 18:48:58 +0000 Subject: 241: Added additional index=None kwarg to errors.ValidationError.__init__() --- ipalib/errors.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'ipalib/errors.py') diff --git a/ipalib/errors.py b/ipalib/errors.py index 8ecccf2b..7629d8f5 100644 --- a/ipalib/errors.py +++ b/ipalib/errors.py @@ -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) -- cgit