Make plugin browser show plugin parent class

This commit is contained in:
Jason Gerard DeRose
2009-10-14 15:08:30 -06:00
parent 5c9437b9e6
commit 8dc21d6f30
2 changed files with 8 additions and 0 deletions

View File

@@ -163,6 +163,9 @@ class Plugin(ReadOnly):
self.name = cls.__name__
self.module = cls.__module__
self.fullname = '%s.%s' % (self.module, self.name)
self.bases = tuple(
'%s.%s' % (b.__module__, b.__name__) for b in cls.__bases__
)
self.doc = inspect.getdoc(cls)
if self.doc is None:
self.summary = '<%s>' % self.fullname