[Zodb-checkins] CVS: ZODB4/src/zodb - db.py:1.7.4.1

Barry Warsaw barry@wooz.org
Mon, 10 Feb 2003 17:48:22 -0500


Update of /cvs-repository/ZODB4/src/zodb
In directory cvs.zope.org:/tmp/cvs-serv30484/src/zodb

Modified Files:
      Tag: opaque-pickles-branch
	db.py 
Log Message:
Use ZERO (zodb.interfaces.ZERO) instead of z64.


=== ZODB4/src/zodb/db.py 1.7 => 1.7.4.1 ===
--- ZODB4/src/zodb/db.py:1.7	Wed Feb  5 18:28:34 2003
+++ ZODB4/src/zodb/db.py	Mon Feb 10 17:48:18 2003
@@ -28,7 +28,7 @@
 from zodb.connection import Connection
 from zodb.serialize import getDBRoot
 from zodb.ztransaction import Transaction
-from zodb.utils import z64
+from zodb.interfaces import ZERO
 
 from transaction import get_transaction
 from transaction.interfaces import IDataManager
@@ -78,12 +78,12 @@
         self._checkVersion()
         storage.registerDB(self)
         try:
-            storage.load(z64, "")
+            storage.load(ZERO, "")
         except KeyError:
             # Create the database's root in the storage if it doesn't exist
             t = Transaction(description="initial database creation")
             storage.tpcBegin(t)
-            storage.store(z64, None, getDBRoot(), '', t)
+            storage.store(ZERO, None, getDBRoot(), '', t)
             storage.tpcVote(t)
             storage.tpcFinish(t)