[Zodb-checkins] CVS: Zope/lib/python/ZODB - Mount.py:1.12
Shane Hathaway
shane@digicool.com
Tue, 4 Dec 2001 18:04:15 -0500
Update of /cvs-repository/Zope/lib/python/ZODB
In directory cvs.zope.org:/tmp/cvs-serv2147
Modified Files:
Mount.py
Log Message:
Merge from 2_5 branch
=== Zope/lib/python/ZODB/Mount.py 1.11 => 1.12 ===
# Detect whether we should close the database.
close_db = self.close_db
- t = mp._v_data
+ t = mp.__dict__.get('_v_data', None)
if t is not None:
- mp._v_data = None
+ del mp.__dict__['_v_data']
data = t[0]
- if not close_db and getattr(data, '_v__object_deleted__', 0):
+ if not close_db and data.__dict__.get(
+ '_v__object_deleted__', 0):
# This mount point has been deleted.
- del data._v__object_deleted__
+ del data.__dict__['_v__object_deleted__']
close_db = 1
# Close the child connection.
try: del conn._mount_parent_jar