From 171ed58367e58c59f9f67ef831f08ce80ba8508b Mon Sep 17 00:00:00 2001 From: Jason Gerard DeRose Date: Wed, 17 Dec 2008 21:57:58 -0700 Subject: Removed Plugin.doc property and replaced with instance attribute created in Plugin.__init__() --- ipalib/plugable.py | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'ipalib/plugable.py') 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()`. -- cgit