server/session.py
branchstable
changeset 4992 398cc8b39aec
parent 4987 ec93dd82c83f
child 5014 96bb4e7e3348
--- a/server/session.py	Wed Mar 24 13:51:52 2010 +0100
+++ b/server/session.py	Wed Mar 24 14:11:01 2010 +0100
@@ -155,6 +155,9 @@
         session = Session(user, self.repo)
         threaddata = session._threaddata
         threaddata.pool = self.pool
+        # share pending_operations, else operation added in the hi-jacked
+        # session such as SendMailOp won't ever be processed
+        threaddata.pending_operations = self.pending_operations
         # everything in transaction_data should be copied back but the entity
         # type cache we don't want to avoid security pb
         threaddata.transaction_data = self.transaction_data.copy()