server/session.py
branchstable
changeset 3986 cc29eddf51ad
parent 3553 76b4a177a018
child 3998 94cc7cad3d2d
child 4212 ab6573088b4a
--- a/server/session.py	Thu Dec 03 10:02:44 2009 +0100
+++ b/server/session.py	Thu Dec 03 11:39:31 2009 +0100
@@ -467,6 +467,15 @@
                     self.rollback(reset_pool)
                     raise
             self.pool.commit()
+            self.commit_state = trstate = 'postcommit'
+            while self.pending_operations:
+                operation = self.pending_operations.pop(0)
+                operation.processed = trstate
+                try:
+                    operation.handle_event('%s_event' % trstate)
+                except:
+                    self.exception('error while %sing', trstate)
+            self.debug('%s session %s done', trstate, self.id)
         finally:
             self._touch()
             self.commit_state = None