summaryrefslogtreecommitdiffstats
path: root/ipalib
diff options
context:
space:
mode:
authorJason Gerard DeRose <jderose@redhat.com>2008-11-13 21:17:33 -0700
committerJason Gerard DeRose <jderose@redhat.com>2008-11-13 21:17:33 -0700
commit1f635269e8c0253230c3d20b6b41ccd91e02f361 (patch)
treeb83385b8bc4e2257d2f682d5e8b97a9d15db80e9 /ipalib
parent8ad5502354a364db606b72455c5514cb56e918ba (diff)
downloadfreeipa-1f635269e8c0253230c3d20b6b41ccd91e02f361.tar.gz
freeipa-1f635269e8c0253230c3d20b6b41ccd91e02f361.tar.xz
freeipa-1f635269e8c0253230c3d20b6b41ccd91e02f361.zip
Param.__repr__() now uses util.make_repr()
Diffstat (limited to 'ipalib')
-rw-r--r--ipalib/frontend.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/ipalib/frontend.py b/ipalib/frontend.py
index 87126a44..f3c0f0fa 100644
--- a/ipalib/frontend.py
+++ b/ipalib/frontend.py
@@ -28,6 +28,7 @@ from plugable import lock, check_name
import errors
from errors import check_type, check_isinstance, raise_TypeError
import ipa_types
+from util import make_repr
RULE_FLAG = 'validation_rule'
@@ -450,11 +451,10 @@ class Param(plugable.ReadOnly):
return value
def __repr__(self):
- return '%s(%r, %s())' % (
- self.__class__.__name__,
- self.name,
- self.type.name,
- )
+ """
+ Return an expresion that could construct this `Param` instance.
+ """
+ return make_repr(self.__class__.__name__, self.name, **self.__override)
def create_param(spec):