summaryrefslogtreecommitdiffstats
path: root/ipalib/plugable.py
diff options
context:
space:
mode:
Diffstat (limited to 'ipalib/plugable.py')
-rw-r--r--ipalib/plugable.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/ipalib/plugable.py b/ipalib/plugable.py
index 581f377b4..c5ceeffe2 100644
--- a/ipalib/plugable.py
+++ b/ipalib/plugable.py
@@ -76,6 +76,13 @@ class ReadOnly(object):
class ProxyTarget(ReadOnly):
__public__ = frozenset()
+ def __get_name(self):
+ """
+ Convenience property to return the class name.
+ """
+ return self.__class__.__name__
+ name = property(__get_name)
+
@classmethod
def implements(cls, arg):
assert type(cls.__public__) is frozenset