mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-11 07:56:17 -06:00
Make plugin browser show plugin parent class
This commit is contained in:
parent
5c9437b9e6
commit
8dc21d6f30
@ -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
|
||||
|
@ -58,6 +58,11 @@ class IPAPlugins(base.Container):
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr class="${row.next()}">
|
||||
<td>base(s)</td>
|
||||
<td py:content="', '.join(p.bases)" />
|
||||
</tr>
|
||||
|
||||
<tr py:if="p.doc" class="${row.next()}">
|
||||
<td>docstring</td>
|
||||
<td><pre py:content="p.doc" /></td>
|
||||
|
Loading…
Reference in New Issue
Block a user