[ZODB-Dev] FileStorage pack screwy.
Andrew Sydelko
sydelko@ecn.purdue.edu
Thu, 1 Nov 2001 10:49:39 -0500
Chris McDonough wrote:
> Hmm... weird.
>
> I'm not sure what version of FileStorage you're using so I dont know
> what line 1462 is; the truth is, however, it really doesn't matter much
> because I'm not even going to pretend to try to decipher the 400-line
> pack method of FileStorage. ;-) Sorry. Maybe somebody else can help here.
Ummm... Isn't the version specific to Zope-2.4.2? You should be able
to grab a tarball of Zope-2.4.2 and look at the FileStorage.py file at
line 1462... (I haven't made any changes.)
> The best I can suggest is to copy the file and open it in a separate
> FileStorage (perhaps a more recent version?), and try to perform a pack
> manually from within it, ala:
>
> import ZODB
> from ZODB import FileStorage, DB
> fs = FileStorage('Data.fs.copy')
> db = DB(fs)
> db.pack()
>
> I have no concrete expectation that this will produce a different
> result, but it's sadly the best thing I can think of at the moment. :-(
I'll try this and report results... I sure hope it works.
--andy.