Removed Plugin.doc property and replaced with instance attribute created in Plugin.__init__()

This commit is contained in:
Jason Gerard DeRose
2008-12-17 21:57:58 -07:00
parent 69041c3b1b
commit 171ed58367
2 changed files with 10 additions and 17 deletions

View File

@@ -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()`.