[wf graph] fix display of condition 3.5
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Mon, 14 Sep 2009 18:28:37 +0200
branch3.5
changeset 3216 4a006fce6023
parent 3215 bf30ab5ba6ee
child 3217 1980e9386161
[wf graph] fix display of condition
web/views/workflow.py
--- a/web/views/workflow.py	Mon Sep 14 18:28:01 2009 +0200
+++ b/web/views/workflow.py	Mon Sep 14 18:28:37 2009 +0200
@@ -165,7 +165,9 @@
                     self._('groups:'),
                     ','.join(g.name for g in tr.require_group)))
             if tr.condition:
-                descr.append('%s %s'% (self._('condition:'), tr.condition))
+                descr.append('%s %s'% (
+                    self._('condition:'),
+                    ' | '.join(e.expression for e in tr.condition)))
             if descr:
                 props['label'] += escape('\n'.join(descr))
         return props