durusmail: quixote-users: ZODB FileStorage problem
ZODB FileStorage problem
2002-02-27
2002-02-28
2002-02-28
2002-03-01
DOMish view of HTML as it's being rendered
2002-02-28
2002-03-01
2002-03-01
2002-03-01
2002-03-01
2002-03-01
2002-03-01
2002-03-01
2002-03-01
2002-03-01
2002-03-01
2002-03-01
ZODB FileStorage problem
David Ascher
2002-02-27
Anytime I try to use ZODB in Quixote, it seems that the FileStorage
never gets closed.  For example:

        storage = FileStorage.FileStorage('photodata.fs')
        db = DB( storage )
        conn = db.open()
        dbroot = conn.root()

in a .ptl script will create the photodata.fs, as well as the
photodata.fs.lock, photodata.fs.tmp, and none of the files ever go away.

I'm running Apache 2.0.28, and the basic CGI configuration (no
mod_python, etc.).

I notice that in woolgather, any action that modifies the database
starts with explicit database opening and closing, such as new_post,
etc.

Why is this necessary?  Can I not expect the FileStorage object to get
closed on GC when the response is sent and "everything gets cleaned up"?

--david


reply