[ZODB-Dev] FileStorage pack screwy.

Chris McDonough chrism@zope.com
Thu, 1 Nov 2001 11:42:06 -0500


Please keep this on the zodb-dev list.  Thanks...

> # ./pack.py
> Traceback (most recent call last):
>   File "./pack.py", line 9, in ?
>     fs = FileStorage('Data.fs.copy')
> TypeError: object of type 'module' is not callable
> 
> I am running the script (with the appropriate PYTHON_PATH)
> inside the var directory where the Data.fs.copy exists.

My script was wrong.  Please try the following.

import ZODB
from ZODB.FileStorage import FileStorage
from ZODB.DB import DB
fs = FileStorage('Data.fs.copy')
db = DB(fs)
db.pack()

HTH,

- C