hooks/workflow.py
changeset 3589 a5432f99f2d9
parent 3536 f6c9a5df80fb
child 3629 559cad62c786
equal deleted inserted replaced
3536:f6c9a5df80fb 3589:a5432f99f2d9
    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