summaryrefslogtreecommitdiffstats
path: root/ipalib/public.py
diff options
context:
space:
mode:
authorJason Gerard DeRose <jderose@redhat.com>2008-09-08 21:51:05 +0000
committerJason Gerard DeRose <jderose@redhat.com>2008-09-08 21:51:05 +0000
commit13f030d91e378064291d2065b547047bb3f175e8 (patch)
tree57a5c6b3c12b029d93877058f22839cc16ca10fb /ipalib/public.py
parentcb9c44270819c080f899fe7678f7f319686e681d (diff)
downloadfreeipa.git-13f030d91e378064291d2065b547047bb3f175e8.tar.gz
freeipa.git-13f030d91e378064291d2065b547047bb3f175e8.tar.xz
freeipa.git-13f030d91e378064291d2065b547047bb3f175e8.zip
271: Improved __repr__ methods for better output from the show-plugins command
Diffstat (limited to 'ipalib/public.py')
-rw-r--r--ipalib/public.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/ipalib/public.py b/ipalib/public.py
index 5a70a715..a5385a92 100644
--- a/ipalib/public.py
+++ b/ipalib/public.py
@@ -189,6 +189,14 @@ class Option(plugable.ReadOnly):
self.validate(value)
return value
+ def __repr__(self):
+ return '%s(%r, %r, %s)' % (
+ self.__class__.__name__,
+ self.name,
+ self.doc,
+ self.type.name,
+ )
+
class Command(plugable.Plugin):
__public__ = frozenset((