[ZODB-Dev] Is any function called when an object is loaded from the database?
Stefan H. Holek
stefan at epy.co.at
Wed Jun 20 17:44:10 UTC 2012
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 <csaftoiu at 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
stefan at epy.co.at
More information about the ZODB-Dev
mailing list