summaryrefslogtreecommitdiffstats
path: root/lib.py
diff options
context:
space:
mode:
authorJan Pokorný <jpokorny@redhat.com>2013-09-27 15:05:46 +0200
committerJan Pokorný <jpokorny@redhat.com>2013-09-27 15:05:46 +0200
commita3e9d53d41c933d92f9110663470ef553f0ed76f (patch)
tree8f085432ca4a06ee09756cf15f714b9b4b322252 /lib.py
parent9898bbbe921ebc0139a9042d0310c51dd6c494cd (diff)
downloadcluster-overview-a3e9d53d41c933d92f9110663470ef553f0ed76f.tar.gz
cluster-overview-a3e9d53d41c933d92f9110663470ef553f0ed76f.tar.xz
cluster-overview-a3e9d53d41c933d92f9110663470ef553f0ed76f.zip
cluster-cman: add documentation references
Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
Diffstat (limited to 'lib.py')
-rw-r--r--lib.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/lib.py b/lib.py
index 9fe0be6..26f0b9c 100644
--- a/lib.py
+++ b/lib.py
@@ -177,10 +177,15 @@ def xdot_graph(*args, **kwargs):
for item in cls.man:
markup += "* <i>" + item + "</i>\n"
markup += '\n'
+ if hasattr(cls, 'doc'):
+ markup += "documentation:\n"
+ for name, value in cls.doc.iteritems():
+ markup += "* " + name + ": <u>" + value + "</u>\n"
+ markup += '\n'
if hasattr(cls, 'ids'):
markup += "identifiers:\n"
for name, value in cls.ids.iteritems():
- markup += "* " + name + ": <i>" + str(value) + "</i>\n"
+ markup += "* " + name + ": <i>" + value + "</i>\n"
markup += '\n'
if hasattr(cls, 'secprops'):
markup += "security properties:\n"