Don't display 'True' condition in print workflow

This commit is contained in:
Cédric Krier committed 2008-11-14 16:49:42 +01:00
1 parent 35e2412134
commit 0b8e36604f
1 file changed
+4 -2
+4 -2
View File
@@ -341,8 +341,10 @@ class InstanceGraph(Report):
context=context)
for transition in transitions:
args = {}
args['label'] = str(transition.condition).replace(' or ',
'\\nor ').replace(' and ', '\\nand ')
args['label'] = ' '
if transition.condition != 'True':
args['label'] += str(transition.condition).replace(' or ',
'\\nor ').replace(' and ', '\\nand ')
if transition.signal:
args['label'] += '\\n' + str(transition.signal)
args['style'] = 'bold'