summaryrefslogtreecommitdiffstats
path: root/ipalib
diff options
context:
space:
mode:
authorJason Gerard DeRose <jderose@redhat.com>2008-12-17 21:57:58 -0700
committerJason Gerard DeRose <jderose@redhat.com>2008-12-17 21:57:58 -0700
commit171ed58367e58c59f9f67ef831f08ce80ba8508b (patch)
tree6780dd636ca73590cde823f72e331b179cab5b7a /ipalib
parent69041c3b1b2494d89097e490048c23292c8cbc52 (diff)
downloadfreeipa-171ed58367e58c59f9f67ef831f08ce80ba8508b.tar.gz
freeipa-171ed58367e58c59f9f67ef831f08ce80ba8508b.tar.xz
freeipa-171ed58367e58c59f9f67ef831f08ce80ba8508b.zip
Removed Plugin.doc property and replaced with instance attribute created in Plugin.__init__()
Diffstat (limited to 'ipalib')
-rw-r--r--ipalib/plugable.py8
1 files changed, 1 insertions, 7 deletions
diff --git a/ipalib/plugable.py b/ipalib/plugable.py
index 2bed992d..5363a51e 100644
--- a/ipalib/plugable.py
+++ b/ipalib/plugable.py
@@ -258,17 +258,11 @@ class Plugin(ReadOnly):
self.name = cls.__name__
self.module = cls.__module__
self.fullname = '%s.%s' % (self.module, self.name)
+ self.doc = cls.__doc__
log = logging.getLogger('ipa')
for name in ('debug', 'info', 'warning', 'error', 'critical'):
setattr(self, name, getattr(log, name))
- def __get_doc(self):
- """
- Convenience property to return the class docstring.
- """
- return self.__class__.__doc__
- doc = property(__get_doc)
-
def __get_api(self):
"""
Return `API` instance passed to `finalize()`.