server/hook.py
branchstable
changeset 5220 42f854b6083d
parent 5194 395f076512a1
child 5238 31c12863fd9d
child 5287 6346f1fd0a50
equal deleted inserted replaced
5219:35d44017c72b 5220:42f854b6083d
   362       if an operation failed while commited, this event is triggered for
   362       if an operation failed while commited, this event is triggered for
   363       all operations which had their commit event already to let them
   363       all operations which had their commit event already to let them
   364       revert things (including the operation which made fail the commit)
   364       revert things (including the operation which made fail the commit)
   365 
   365 
   366     rollback:
   366     rollback:
   367       the transaction has been either rollbacked either
   367       the transaction has been either rollbacked either:
   368       * intentionaly
   368        * intentionaly
   369       * a precommit event failed, all operations are rollbacked
   369        * a precommit event failed, all operations are rollbacked
   370       * a commit event failed, all operations which are not been triggered for
   370        * a commit event failed, all operations which are not been triggered for
   371         commit are rollbacked
   371          commit are rollbacked
   372 
   372 
   373     order of operations may be important, and is controlled according to:
   373     order of operations may be important, and is controlled according to
   374     * operation's class
   374     the insert_index's method output
   375     """
   375     """
   376 
   376 
   377     def __init__(self, session, **kwargs):
   377     def __init__(self, session, **kwargs):
   378         self.session = session
   378         self.session = session
   379         self.__dict__.update(kwargs)
   379         self.__dict__.update(kwargs)