[ZODB-Dev] Occasional startup errors in serialize.py/_reconstructor
Hanno Schlichting
hanno at hannosch.eu
Mon May 9 08:29:11 EDT 2011
On Mon, May 9, 2011 at 2:08 PM, Andreas Jung <lists at zopyx.com> wrote:
> Jup - basically a stripped down version of
>
> http://svn.plone.org/svn/collective/collective.examples.userdata/trunk/collective/examples/userdata/
Hhm, that code has
http://svn.plone.org/svn/collective/collective.examples.userdata/trunk/collective/examples/userdata/profiles/default/componentregistry.xml
which ends up storing an instance of the object inside the ZODB.
I'm not sure what happens there exactly. The object should definitely
inherit from persistent, if you want to store it in the ZODB. As it is
now, it might only accidentally get stored at all, if the local site
managers _utility_registrations object gets _p_changed set to True.
In any case just putting in persistent into the base classes should be
the easiest fix.
Hanno
More information about the ZODB-Dev
mailing list