summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ipalib/plugable.py3
-rw-r--r--ipawebui/widgets.py5
2 files changed, 8 insertions, 0 deletions
diff --git a/ipalib/plugable.py b/ipalib/plugable.py
index dceb41f07..12746c12a 100644
--- a/ipalib/plugable.py
+++ b/ipalib/plugable.py
@@ -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
diff --git a/ipawebui/widgets.py b/ipawebui/widgets.py
index 71eee9200..74b9d7e0c 100644
--- a/ipawebui/widgets.py
+++ b/ipawebui/widgets.py
@@ -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>