server/hooks.py
branchstable
changeset 4112 b33a9f3e19d6
parent 4111 1fda1d356741
parent 4098 eb4722dd5f86
child 4116 20b23af4e51e
--- a/server/hooks.py	Mon Dec 14 14:49:18 2009 +0100
+++ b/server/hooks.py	Mon Dec 14 14:49:37 2009 +0100
@@ -537,7 +537,9 @@
                 raise ValidationError(entity.eid, {'by_transition': msg})
             if not tr.has_input_state(fromstate):
                 _ = session._
-                msg = _("transition %s isn't allowed from %s") % (_(tr.name), _(fromstate.name))
+                msg = _("transition %(tr)s isn't allowed from %(st)s") % {'tr': _(tr.name),
+                                                                          'st': _(fromstate.name),
+                                                                          }
                 raise ValidationError(entity.eid, {'by_transition': msg})
             if not tr.may_be_fired(foreid):
                 msg = session._("transition may not be fired")