rephrase
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Wed, 10 Feb 2010 08:08:17 +0100
changeset 4533 05eadf88b797
parent 4532 85116e75f561
child 4534 9e9eb6a22d14
rephrase
server/querier.py
server/session.py
--- a/server/querier.py	Wed Feb 10 08:07:53 2010 +0100
+++ b/server/querier.py	Wed Feb 10 08:08:17 2010 +0100
@@ -662,7 +662,7 @@
             # since it's actually realy only needed there (other relations
             # security is done *before* actual changes, and add/update entity
             # security is done after changes but in an operation, and exception
-            # generated in operation's events  properly generate a rollback on
+            # generated in operation's events properly generate a rollback on
             # the session). Even though, this is done here for a better
             # consistency: getting an Unauthorized exception means the
             # transaction has been rollbacked
--- a/server/session.py	Wed Feb 10 08:07:53 2010 +0100
+++ b/server/session.py	Wed Feb 10 08:08:17 2010 +0100
@@ -484,10 +484,8 @@
                     operation.failed = True
                     for operation in processed:
                         operation.handle_event('revert%s_event' % trstate)
-                    # res
-
-                    # XXX self.pending_operations is supposed to be
-                    # read-only, and we are clearly modifying it here.
+                    # XXX use slice notation since self.pending_operations is a
+                    # read-only property.
                     self.pending_operations[:] = processed + self.pending_operations 
                     self.rollback(reset_pool)
                     raise