must use in-place modification, pending_operations is a read-only property stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Mon, 08 Feb 2010 13:33:09 +0100
branchstable
changeset 4500 81021d62138f
parent 4497 593386221aa7
child 4503 f2b592b1d34c
child 4504 f1d505f979b3
child 4506 5b99f4a9f8ef
must use in-place modification, pending_operations is a read-only property
server/session.py
--- a/server/session.py	Mon Feb 08 13:03:38 2010 +0100
+++ b/server/session.py	Mon Feb 08 13:33:09 2010 +0100
@@ -475,7 +475,7 @@
                     for operation in processed:
                         operation.handle_event('revert%s_event' % trstate)
                     # res
-                    self.pending_operations = processed + self.pending_operations
+                    self.pending_operations[:] = processed + self.pending_operations
                     self.rollback(reset_pool)
                     raise
             self.pool.commit()