From ac663d79dcbbab28c9e45518441765d79779cbdc Mon Sep 17 00:00:00 2001 From: Jim Fulton <jim@zope.com> Date: Sun, 11 Jul 1999 19:31:07 +0000 Subject: [PATCH] Changed the constructor to adjust the starting object id for a base storage. --- src/ZODB/BaseStorage.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/ZODB/BaseStorage.py b/src/ZODB/BaseStorage.py index bf324ef4..5edd8c69 100644 --- a/src/ZODB/BaseStorage.py +++ b/src/ZODB/BaseStorage.py @@ -84,7 +84,7 @@ ############################################################################## """Handy standard storage machinery """ -__version__='$Revision: 1.1 $'[11:-2] +__version__='$Revision: 1.2 $'[11:-2] import time, bpthread from POSException import UndoError @@ -95,7 +95,7 @@ class BaseStorage: _transaction=None _serial=z64 - def __init__(self, name): + def __init__(self, name, base=None): self.__name__=name @@ -110,7 +110,8 @@ class BaseStorage: t=time.time() t=self._ts=apply(TimeStamp,(time.gmtime(t)[:5]+(t%60,))) self._serial=`t` - self._oid='\0\0\0\0\0\0\0\1' + if base is None: self._oid='\0\0\0\0\0\0\0\0' + else: self._oid=base._oid def close(self): pass -- 2.30.9