server/hooks.py
branchstable
changeset 3859 85e6ba89837a
parent 3773 14fde27a70a2
child 3877 7ca53fc72a0a
child 3886 6389e5d6edcb
--- a/server/hooks.py	Mon Nov 16 14:47:47 2009 +0100
+++ b/server/hooks.py	Mon Nov 16 15:36:06 2009 +0100
@@ -531,7 +531,8 @@
                 msg = session._("transition doesn't belong to entity's workflow")
                 raise ValidationError(entity.eid, {'by_transition': msg})
             if not tr.has_input_state(fromstate):
-                msg = session._("transition isn't allowed")
+                _ = session._
+                msg = _("transition %s isn't allowed from %s") % (_(tr.name), _(fromstate.name))
                 raise ValidationError(entity.eid, {'by_transition': msg})
             if not tr.may_be_fired(foreid):
                 msg = session._("transition may not be fired")