Re: [ZODB-Dev] Threads and Connections

2006-07-29 Thread Dieter Maurer
Chris S wrote at 2006-7-26 16:03 -0400: ... When a file containing source code is modified, I want to reload it using Python's reload() function, then update classes with the new definitions. I have application-level logic to ensure the objects are in a sane-state during update. The only problem

[ZODB-Dev] ZODB file never updated - import transaction fails...

2006-07-29 Thread skip
Matt Cowles has a DNS cache module with a patch for use with SpamBayes. It doesn't persist the data (just caches during the lifetime of the run). I'm trying to add persistence to that cache and wanting to use the same database as the user selects for the main SpamBayes database, my first two

Re: [ZODB-Dev] ZODB file never updated - import transaction fails...

2006-07-29 Thread Chris McDonough
Since your exception is happening during __del__ and since AFAIK no guarantees are made as to what will exist is sys.modules during any given object's __del__, it's maybe not suprising that you're getting this exception. I don't know that this has anything to do with ZODB in particular.

Re: [ZODB-Dev] ZODB file never updated - import transaction fails...

2006-07-29 Thread Dieter Maurer
[EMAIL PROTECTED] wrote at 2006-7-29 08:40 -0500: ... When the cache is deleted, its __del__ method calls self.close() which calls self._zodb_close(): def _zodb_close(self): # Ensure that the db is saved before closing. Alternatively, we # could abort any waiting