diff -r c9dbd95333f7 -r d6fd82a5a4e8 hooks/workflow.py --- a/hooks/workflow.py Fri Mar 26 19:21:17 2010 +0100 +++ b/hooks/workflow.py Tue Mar 30 14:32:03 2010 +0200 @@ -45,7 +45,7 @@ state = entity.current_workflow.initial if state: session.add_relation(entity.eid, 'in_state', state.eid) - + _FireAutotransitionOp(session, entity=entity) class _FireAutotransitionOp(hook.Operation): """try to fire auto transition after state changes""" @@ -86,6 +86,7 @@ if entity.current_state.eid != deststate.eid: _change_state(session, entity.eid, entity.current_state.eid, deststate.eid) + _FireAutotransitionOp(session, entity=entity) return msg = session._('workflow changed to "%s"') msg %= session._(mainwf.name)