[Zope-Checkins] CVS: Zope2 - BaseStorage.py:1.9
Jim Fulton
jim@digicool.com
Sat, 1 Jul 2000 19:32:27 -0400
Update of /cvs-repository/Zope2/lib/python/ZODB
In directory korak.digicool.com:/projects/users/jim/Zope2/lib/python/ZODB
Modified Files:
BaseStorage.py
Log Message:
Made a number of changes to support moving data between storages
(e.g. when moving data between a DCOracleStorage and a FileStorage),
especially the method copyTransactionsFrom, as in:
import ZODB.FileStorage, DCOracle, DCOracleStorage
# Copy data.fs to oracle
DCOracleStorage.Full(
lambda : DCOracle.Connect('user/pw@sid')
).copyTransactionsFrom(
ZODB.FileStorage.FileStorage('Data.fs', read_only=1)
)