[Zodb-checkins] CVS: Zope2/lib/python/ZODB - TmpStore.py:1.4
shane@digicool.com
shane@digicool.com
Sat, 14 Apr 2001 19:11:37 -0400 (EDT)
Update of /cvs-repository/Zope2/lib/python/ZODB
In directory korak:/tmp/cvs-serv16793
Modified Files:
TmpStore.py
Log Message:
Accept None as the serial when storing a new object
--- Updated File TmpStore.py in package Zope2/lib/python/ZODB --
--- TmpStore.py 2001/01/22 14:20:55 1.3
+++ TmpStore.py 2001/04/14 23:11:36 1.4
@@ -142,6 +142,8 @@
pos=self._pos
file.seek(pos)
l=len(data)
+ if serial is None:
+ serial = '\0\0\0\0\0\0\0\0'
file.write(oid+serial+p64(l))
file.write(data)
self._tindex.append((oid,pos))