equal
deleted
inserted
replaced
482 # instead of having to implements rollback, revertprecommit |
482 # instead of having to implements rollback, revertprecommit |
483 # and revertcommit, that will be enough in mont case. |
483 # and revertcommit, that will be enough in mont case. |
484 operation.failed = True |
484 operation.failed = True |
485 for operation in processed: |
485 for operation in processed: |
486 operation.handle_event('revert%s_event' % trstate) |
486 operation.handle_event('revert%s_event' % trstate) |
487 # res |
487 # XXX use slice notation since self.pending_operations is a |
488 |
488 # read-only property. |
489 # XXX self.pending_operations is supposed to be |
|
490 # read-only, and we are clearly modifying it here. |
|
491 self.pending_operations[:] = processed + self.pending_operations |
489 self.pending_operations[:] = processed + self.pending_operations |
492 self.rollback(reset_pool) |
490 self.rollback(reset_pool) |
493 raise |
491 raise |
494 self.pool.commit() |
492 self.pool.commit() |
495 self.commit_state = trstate = 'postcommit' |
493 self.commit_state = trstate = 'postcommit' |