[Zodb-checkins] CVS: Zope3/lib/python/ZODB - DB.py:1.34.4.3
Jeremy Hylton
jeremy@zope.com
Thu, 21 Feb 2002 18:21:37 -0500
Update of /cvs-repository/Zope3/lib/python/ZODB
In directory cvs.zope.org:/tmp/cvs-serv13691
Modified Files:
Tag: Zope-3x-branch
DB.py
Log Message:
Get rid of local variable redirection for single reference.
Get rid of tpc_vote() workaround. All Zope3 storages will support
tpc_vote().
=== Zope3/lib/python/ZODB/DB.py 1.34.4.2 => 1.34.4.3 ===
# Setup storage
- self._storage=storage
+ self._storage = storage
storage.registerDB(self, None)
- if not hasattr(storage,'tpc_vote'):
- storage.tpc_vote=lambda *args: None
try:
- storage.load('\0\0\0\0\0\0\0\0','')
+ storage.load('\0\0\0\0\0\0\0\0', '')
except KeyError:
# Create the database's root in the storage if it doesn't exist
from Persistence import PersistentMapping