From 36ebeda39bf0aeccca21e63632d4b96bf8cdf47b Mon Sep 17 00:00:00 2001 From: Narayan Desai Date: Fri, 17 Mar 2006 16:57:05 +0000 Subject: * Fix bundle display git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@1803 ce84e21b-d406-0410-9b95-82705330c041 --- tools/groups-to-dot.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'tools/groups-to-dot.py') 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() -- cgit v1.2.3-1-g7c22