[Zope] Re: packing a data.fs from outside zope?

Anthony Baxter Anthony Baxter <anthony@interlink.com.au>
Wed, 16 May 2001 13:00:06 +1000


>>> Anthony Baxter wrote
> Don't suppose anyone's produced a nice convenient "pack a data.fs file"
> script that's runnable from outside Zope?

never mind. (here it is, for anyone interested)

import ZODB
from Persistence import Persistent
store = ZODB.FileStorage.FileStorage("Data.fs")
db = ZODB.DB(store)
db.pack()
print "done"