[Zope] Persistence Problem

Dieter Maurer dieter@handshake.de
Sun, 18 Aug 2002 23:40:40 +0200


Charlie Reiman writes:
 > Thanks everyone. This dawned on me as I was on the train riding home. I also
 > found __setstate__ and __getstate__ if I want to mess with the loading hooks
 > (I don't).
 > 
 > http://www.zopelabs.com/cookbook/1002251996
 > 
 > The Zope Developer's guide does talk about module variables. But all it says
 > is:
 > 
 > "Objects stored in modules but not in the ZODB are not persistent and
 > not-thread safe. In general it's not a good idea to store data (as opposed
 > to functions, and class definitions) in modules when using ZODB."
You might look at "SharableResource" at

  <http://www.dieter.handshake.de/pyprojects/zope>

It has been developed for Zope 2.1.6, thus it may not run in modern
Zope version.


Dieter