[Zope] Persistence issue or a simple bug?

Magnus Heino magnus.heino@pleon.sigma.se
Tue, 25 Jun 2002 14:20:01 +0200


> I've got a problem with a persistence of created product attributes. My
> product is a simple CMF portal type containing lists of some objects. The
> problem is that my lists are flushed after refresh of the product. The

The list sub-object that doesn't participate in persistence. The normal 
automatic detection of object changed doesn't work with lists.

Either do:

self._p_changed=1

or change the whole list, or simply use tuples instead of lists.

Read this; 
http://www.python.org/workshops/2000-01/proceedings/papers/fulton/zodb3.html

/Magnus