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.

Stefan


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

> On 19 June 2012 23:38, Claudiu Saftoiu <csaft...@gmail.com> 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
ste...@epy.co.at

_______________________________________________
For more information about ZODB, see http://zodb.org/

ZODB-Dev mailing list  -  ZODB-Dev@zope.org
https://mail.zope.org/mailman/listinfo/zodb-dev

Reply via email to