[Zope] Handling object changes
Dragos Chirila
d.chirila at finsiel.ro
Fri Jun 4 10:31:43 EDT 2004
Hi
I think that the solution is writing a Python script that changes your
objects, something like:
for object in yourobjects:
bject.newproperty = value
bject._p_changed = 1
and after that all objects have a new property 'newproperty' with the value
'value'
I hope this will help.
Regards,
Dragos
> Hi all,
>
> I'm looking for some method to handle changes on my objects. I'm
> interested in persistence changes. I know I should be able to handle
> some changes writting a __setattr__ method, but I'm also interested into
> handle changes even if they are done in a list attribute, or in a
> dictionary attribute. That's it, I would be able to handle any changed
> market in the "self._p_changed = 1" way, but I'm not able to find the
> piece of code doing this work.
>
> Anybody knows if it is possible ? If not, anybody knows where is the
> logic doing this work in Zope (Connection, Storage, Persistence, ...) ?
>
> Thanks in advance
>
> Santi Camps
>
> _______________________________________________
> Zope maillist - Zope at zope.org
> http://mail.zope.org/mailman/listinfo/zope
> ** No cross posts or HTML encoding! **
> (Related lists -
> http://mail.zope.org/mailman/listinfo/zope-announce
> http://mail.zope.org/mailman/listinfo/zope-dev )
>
More information about the Zope
mailing list