[Zope3-Users] Disappearing dictionary. Upon restart, dictionary resets.

Tom Dossis td at yoma.com.au
Mon Sep 26 03:03:50 EDT 2005


Alec Munro wrote:
> Well, I narrowed it down a little bit more.
> 
> I've been initializing the dictionary in the class declaration, like
> the following:
> 
> class SomeObj:
>     some_dictionary = PersistentDict({})
> 
> Now, for some reason, each time Zope was started, it called this, and
> whenever I tried to access the some_dictionary propery on any of my
> objects, it returned the newly created one. Is this what should be
> happening?

That's the case in zope and python, 'some_dictionary' attribute is mutable.


More information about the Zope3-users mailing list