[ZODB-Dev] Feature Request 2381 : Persistent object iterator in Storage
Barry A. Warsaw
barry@digicool.com
Mon, 9 Jul 2001 12:22:47 -0400
>>>>> "BAW" == Barry A Warsaw <barry@digicool.com> writes:
BAW> only use of the iterator protocol in the field, AFAIK. Below
BAW> is the entirety of the script that I use to copy a database.
Ah, whoops!
-Barry
-------------------- snip snip --------------------
#! /usr/bin/env python
import sys
from Full import Full
# Copy one database to another
srcfile = sys.argv[1]
dstfile = sys.argv[2]
src = Full('zope', srcfile)
dst = Full('zope', dstfile)
dst.copyTransactionsFrom(src)
src.close()
dst.close()