[Zope-CVS] CVS: Products/Ape/lib/apelib/zodb3 - connection.py:1.11
Shane Hathaway
shane at zope.com
Tue Mar 16 22:58:27 EST 2004
Update of /cvs-repository/Products/Ape/lib/apelib/zodb3
In directory cvs.zope.org:/tmp/cvs-serv19077
Modified Files:
connection.py
Log Message:
BTree objects are first-class persistents, but do not subclass Persistent.
=== Products/Ape/lib/apelib/zodb3/connection.py 1.10 => 1.11 ===
--- Products/Ape/lib/apelib/zodb3/connection.py:1.10 Thu Mar 11 00:46:42 2004
+++ Products/Ape/lib/apelib/zodb3/connection.py Tue Mar 16 22:58:26 2004
@@ -401,7 +401,7 @@
# Add an event handler to unmanaged subobjects.
# The event handler calls self.register() when it changes.
for o in unmanaged:
- if isinstance(o, Persistent):
+ if hasattr(o, '_p_oid'): # Looks like a persistent object
if o._p_jar is None:
o._p_oid = 'unmanaged'
o._p_jar = UnmanagedJar(self, obj._p_oid)
More information about the Zope-CVS
mailing list