server/hooks.py
branchstable
changeset 3617 9036a8fbbd57
parent 3568 87a7ca9d8ce6
child 3618 ad04840ab25c
--- a/server/hooks.py	Thu Oct 08 11:44:06 2009 +0200
+++ b/server/hooks.py	Thu Oct 08 11:58:19 2009 +0200
@@ -520,6 +520,7 @@
                 raise ValidationError(entity.eid, {'by_transition': msg})
             if not tr.has_input_state(fromstate):
                 msg = session._("transition isn't allowed")
+                print tr.name, fromstate.name, entity.by_transition
                 raise ValidationError(entity.eid, {'by_transition': msg})
             if not tr.may_be_fired(foreid):
                 msg = session._("transition may not be fired")