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

jinty at codespeak.net jinty at codespeak.net
Sun Jan 22 21:03:14 CET 2006


Author: jinty
Date: Sun Jan 22 21:03:13 2006
New Revision: 22491

Modified:
   z3/sqlos/branch/sqlos-zope2.8/src/sqlos/_transaction.py
Log:
oops!

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:03:13 2006
@@ -46,7 +46,7 @@
     This function should not cause SQL to be sent as it is not defined whether
     the SQL connection will commit before or after this is executed.
     """
-    if getattr(obj, 'id', None) is None:
+    if getattr(obj, 'id', None) is not None:
         for connection in connCache.values():
             connection.cache.expire(obj.id, obj.__class__)
 


More information about the z3-checkins mailing list