[ui] translate state/tr names in wf image 3.5
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Fri, 18 Sep 2009 08:33:16 +0200
branch3.5
changeset 3304 2b18276b21ab
parent 3303 f961392e7517
child 3305 abae9045d2e4
[ui] translate state/tr names in wf image
web/views/workflow.py
--- a/web/views/workflow.py	Fri Sep 18 08:16:01 2009 +0200
+++ b/web/views/workflow.py	Fri Sep 18 08:33:16 2009 +0200
@@ -187,7 +187,7 @@
 
     def node_properties(self, stateortransition):
         """return default DOT drawing options for a state or transition"""
-        props = {'label': stateortransition.name,
+        props = {'label': stateortransition.printable_value('name'),
                  'fontname': 'Courier'}
         if hasattr(stateortransition, 'state_of'):
             props['shape'] = 'box'