The observed behavior (as always, transient and irreproducable from test cases) is that the contents of a PersitentMapping object disappears. The underlying structure is a PersistentMapping of PersistentMappings of User objects. My understanding is that the PersistentMapping wrapper handles the black magic properly. As for the perilious modification of mutable attributes, I am certainly aware of the issue--in fact, that's why I am so concerned about the monkey patch issue as it is in the monkey patch code that the PersistentMapping constructor is called, etc. On Fri, 23 Jan 2004, Dieter Maurer wrote:
Dennis Allison wrote at 2004-1-23 07:38 -0800:
... The persistence problem manifests itself by disappearing data (sometimes).
Which data disappears?
You are aware of the perilious modification of mutable attributes?
I am very skeptical about monkey patched methods in Zope behaving the right way vis a vis persistence.
Monkey patches do not affect the way how persistence works. You should see the same behaviour when you methods were not patched but "original"...
-- Dieter