diff options
author | Narayan Desai <desai@mcs.anl.gov> | 2006-03-17 16:57:05 +0000 |
---|---|---|
committer | Narayan Desai <desai@mcs.anl.gov> | 2006-03-17 16:57:05 +0000 |
commit | 36ebeda39bf0aeccca21e63632d4b96bf8cdf47b (patch) | |
tree | 4e95a63133781e4bdb2c903a3a2e4c60ffec730c /tools/groups-to-dot.py | |
parent | 25446959a6321042edb57f5b15685c22a549378a (diff) | |
download | bcfg2-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/groups-to-dot.py')
-rwxr-xr-x | tools/groups-to-dot.py | 6 |
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() |