[ZODB-Dev] FileStorage pack screwy.

Andrew Sydelko sydelko@ecn.purdue.edu
Thu, 1 Nov 2001 12:00:26 -0500


Chris McDonough wrote:
> 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()

Not only did the script run, but it ran without errors and
I now have a packed database... Thanks.

--andy.