From 9964f729c345dcf05a6c124cfe3bf0434569bca9 Mon Sep 17 00:00:00 2001 From: Stephane Wirtel Date: Tue, 25 Nov 2008 15:17:12 +0100 Subject: [PATCH] [FIX] Pass the arguments to the __init__ method of pydot.Dot because there is a bug with the pydot.Dot#set method lp bug: https://launchpad.net/bugs/301648 fixed bzr revid: stephane@tinyerp.com-20081125141712-kyl78ajk3mrsyzlk --- bin/addons/base/ir/workflow/print_instance.py | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/bin/addons/base/ir/workflow/print_instance.py b/bin/addons/base/ir/workflow/print_instance.py index c0d7847ffd1..48a958c5945 100644 --- a/bin/addons/base/ir/workflow/print_instance.py +++ b/bin/addons/base/ir/workflow/print_instance.py @@ -143,12 +143,9 @@ showpage''' showpage''' else: inst_id = inst_id[0] - graph = pydot.Dot(fontsize='16', label="""\\\n\\nWorkflow: %s\\n OSV: %s""" % (wkfinfo['name'],wkfinfo['osv'])) - graph.set('size', '10.7,7.3') - graph.set('center', '1') - graph.set('ratio', 'auto') - graph.set('rotate', '90') - graph.set('rankdir', 'LR') + graph = pydot.Dot(fontsize='16', label="""\\\n\\nWorkflow: %s\\n OSV: %s""" % (wkfinfo['name'],wkfinfo['osv']), + size='10.7, 7.3', center='1', ratio='auto', rotate='90', rankdir='LR' + ) graph_instance_get(cr, graph, inst_id, data.get('nested', False)) ps_string = graph.create(prog='dot', format='ps') except Exception, e: