[Zope3-checkins] CVS: Zope3/lib/python/ZODB - DB.py:1.51
Jeremy Hylton
jeremy@zope.com
Mon, 5 Aug 2002 16:09:09 -0400
Update of /cvs-repository/Zope3/lib/python/ZODB
In directory cvs.zope.org:/tmp/cvs-serv1296/lib/python/ZODB
Modified Files:
DB.py
Log Message:
PersistentMapping is now PersistentDict (by popular demand).
Note that this change will break any old pickles.
=== Zope3/lib/python/ZODB/DB.py 1.50 => 1.51 ===
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.PersistentMapping import PersistentMapping
- root = PersistentMapping()
+ from Persistence.PersistentDict import PersistentDict
+ root = PersistentDict()
# Manually create a pickle for the root to put in the storage.
# The pickle must be in the special ZODB format.
file = cStringIO.StringIO()
@@ -87,7 +87,7 @@
p.dump((root.__class__, None))
p.dump(root.__getstate__())
t = Transaction()
- t.description = 'initial database creation'
+ t.note("initial database creation")
storage.tpc_begin(t)
storage.store('\0\0\0\0\0\0\0\0', None, file.getvalue(), '', t)
storage.tpc_vote(t)