backport pending_operations on hi-jacked session, see comment stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Wed, 24 Mar 2010 14:11:01 +0100
branchstable
changeset 4992 398cc8b39aec
parent 4991 16f0cec3d008
child 4993 c9229f185690
backport pending_operations on hi-jacked session, see comment
server/session.py
--- 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()