summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorNarayan Desai <desai@mcs.anl.gov>2006-03-17 16:57:05 +0000
committerNarayan Desai <desai@mcs.anl.gov>2006-03-17 16:57:05 +0000
commit36ebeda39bf0aeccca21e63632d4b96bf8cdf47b (patch)
tree4e95a63133781e4bdb2c903a3a2e4c60ffec730c /tools
parent25446959a6321042edb57f5b15685c22a549378a (diff)
downloadbcfg2-36ebeda39bf0aeccca21e63632d4b96bf8cdf47b.tar.gz
bcfg2-36ebeda39bf0aeccca21e63632d4b96bf8cdf47b.tar.bz2
bcfg2-36ebeda39bf0aeccca21e63632d4b96bf8cdf47b.zip
* Fix bundle display
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@1803 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'tools')
-rwxr-xr-xtools/groups-to-dot.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/tools/groups-to-dot.py b/tools/groups-to-dot.py
index f3a009c4e..11bd43965 100755
--- a/tools/groups-to-dot.py
+++ b/tools/groups-to-dot.py
@@ -41,7 +41,7 @@ if __name__ == '__main__':
if bund.get('name') not in bundles]
bundles.sort()
for bundle in bundles:
- dotpipe.tochild.write('''\t"bundle-%s" [ label="%s", shape="rect"];\n''' % (bundle, bundle))
+ dotpipe.tochild.write('''\t"bundle-%s" [ label="%s", shape="septagon"];\n''' % (bundle, bundle))
for group in groups.findall('Group'):
color = categories[group.get('category', 'default')]
@@ -60,6 +60,10 @@ if __name__ == '__main__':
for parent in group.findall('Group'):
dotpipe.tochild.write('\t"group-%s" -> "group-%s" ;\n' %
(group.get('name'), parent.get('name')))
+ dotpipe.tochild.write("\tsubgraph key {\n")
+ dotpipe.tochild.write('''\tBundle [ shape="septagon" ];\n''')
+ dotpipe.tochild.write('''\tGroup [shape="ellipse"];\n''')
+ dotpipe.tochild.write("\t}\n")
dotpipe.tochild.write("}\n")
dotpipe.tochild.close()
data = dotpipe.fromchild.read()