server/session.py
branchstable
changeset 4759 af2e6c377c71
parent 4721 8f63691ccb7f
child 4767 74b8e39d4825
child 4842 3653e09024a1
equal deleted inserted replaced
4758:0efdcf0fa4c7 4759:af2e6c377c71
   497                     operation.failed = True
   497                     operation.failed = True
   498                     for operation in processed:
   498                     for operation in processed:
   499                         operation.handle_event('revert%s_event' % trstate)
   499                         operation.handle_event('revert%s_event' % trstate)
   500                     # XXX use slice notation since self.pending_operations is a
   500                     # XXX use slice notation since self.pending_operations is a
   501                     # read-only property.
   501                     # read-only property.
   502                     self.pending_operations[:] = processed + self.pending_operations 
   502                     self.pending_operations[:] = processed + self.pending_operations
   503                     self.rollback(reset_pool)
   503                     self.rollback(reset_pool)
   504                     raise
   504                     raise
   505             self.pool.commit()
   505             self.pool.commit()
   506             self.commit_state = trstate = 'postcommit'
   506             self.commit_state = trstate = 'postcommit'
   507             while self.pending_operations:
   507             while self.pending_operations: