merge stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Mon, 16 Nov 2009 15:44:42 +0100
branchstable
changeset 3861 535db4d4ff57
parent 3860 2e7d399ee075 (current diff)
parent 3859 85e6ba89837a (diff)
child 3862 4908c7156eab
merge
--- a/server/hooks.py	Mon Nov 16 15:44:26 2009 +0100
+++ b/server/hooks.py	Mon Nov 16 15:44:42 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")