equal
deleted
inserted
replaced
46 # use super session to by-pass security checks |
46 # use super session to by-pass security checks |
47 session.super_session.add_relation(entity.eid, 'in_state', |
47 session.super_session.add_relation(entity.eid, 'in_state', |
48 state.eid) |
48 state.eid) |
49 |
49 |
50 |
50 |
51 class _FireAutotransitionOp(PreCommitOperation): |
51 class _FireAutotransitionOp(hook.Operation): |
52 """try to fire auto transition after state changes""" |
52 """try to fire auto transition after state changes""" |
53 |
53 |
54 def precommit_event(self): |
54 def precommit_event(self): |
55 session = self.session |
55 session = self.session |
56 entity = self.entity |
56 entity = self.entity |