One thing I seem to remember is that changes made in __setstate__ do not mark 
the object as dirty. This is because after being loaded an object is up-to-date 
by definition. 

I suggest going with zope.generations.


On 19.06.2012, at 23:42, Malthe Borch wrote:

> On 19 June 2012 23:38, Claudiu Saftoiu <> wrote:
>> Is there any hook to call *after* the instance attributes get set/loaded
>> from the database?
> True. I guess you'll have to go with Marius' suggestion – ``__setstate__``.

Stefan H. Holek

For more information about ZODB, see

ZODB-Dev mailing list  -

Reply via email to