[z3-checkins] r22492 - z3/sqlos/branch/sqlos-zope2.8/src/sqlos

jinty at codespeak.net jinty at codespeak.net
Sun Jan 22 21:04:31 CET 2006


Author: jinty
Date: Sun Jan 22 21:04:30 2006
New Revision: 22492

Modified:
   z3/sqlos/branch/sqlos-zope2.8/src/sqlos/_transaction.py
Log:
More roll back protection.

Modified: z3/sqlos/branch/sqlos-zope2.8/src/sqlos/_transaction.py
==============================================================================
--- z3/sqlos/branch/sqlos-zope2.8/src/sqlos/_transaction.py	(original)
+++ z3/sqlos/branch/sqlos-zope2.8/src/sqlos/_transaction.py	Sun Jan 22 21:04:30 2006
@@ -49,10 +49,9 @@
     if getattr(obj, 'id', None) is not None:
         for connection in connCache.values():
             connection.cache.expire(obj.id, obj.__class__)
-
-    # Expire object values. The transaction has either been aborted or
-    # committed.
-    obj.expire()
+        # Expire object values. The transaction has either been aborted or
+        # committed.
+        obj.expire()
 
     # Calling sync() would commit the changes because expire()
     # doesn't clear _SO_createValues.


More information about the z3-checkins mailing list