[Zope-CVS] CVS: Products/Ape/lib/apelib/zodb3 - connection.py:1.3

Shane Hathaway shane@zope.com
Mon, 21 Apr 2003 13:27:51 -0400


Update of /cvs-repository/Products/Ape/lib/apelib/zodb3
In directory cvs.zope.org:/tmp/cvs-serv20815/zodb3

Modified Files:
	connection.py 
Log Message:
- The no_mtime_available flag is no longer needed.

- Compare jars by identity rather than equality.


=== Products/Ape/lib/apelib/zodb3/connection.py 1.2 => 1.3 ===
--- Products/Ape/lib/apelib/zodb3/connection.py:1.2	Sat Apr 12 23:13:17 2003
+++ Products/Ape/lib/apelib/zodb3/connection.py	Mon Apr 21 13:27:50 2003
@@ -48,8 +48,6 @@
     """
     _root_mapper = None
 
-    no_mtime_available = 1  # Flag recognized by the PersistentExtra base class
-
     __implements__ = (IKeyedObjectSystem,
                       getattr(Connection, '__implements__', ()))
 
@@ -256,8 +254,8 @@
                 for (ext_keychain, ext_ref) in ext_refs:
                     if self.getSerial(ext_ref) == HASH0:
                         ext_oid = oid_encoder.encode(ext_keychain)
-                        if ext_ref._p_jar:
-                            if ext_ref._p_jar != self:
+                        if ext_ref._p_jar is not None:
+                            if ext_ref._p_jar is not self:
                                 raise InvalidObjectReference, (
                                     "Can't refer from %s in %s to %s in %s"
                                     % (repr(object), repr(self), repr(ext_ref),