[ZODB-Dev] How to predict George Bailey?

Christian Reis kiko@async.com.br
Sat, 2 Nov 2002 11:17:12 -0300


On Sat, Nov 02, 2002 at 02:13:48AM +0100, Magnus Lycka wrote:
> >what triggers the event to which the observers subscribe? why can it handle
> >some types of changes but not others?
> 
> __setattr__ in persistent objects, and methods such as remove and
> __delattr__ etc in a subclass of PersistentList.
> 
> In the case of an undo, there is as far as I understand no method
> in my python code that will detect a change. The objects just jump
> from one state to another, all in a sudden. Surely __setattr__ won't
> be called when I back to a previous version?

No, but __setstate__ should, IIRC.

Take care,
--
Christian Reis, Senior Engineer, Async Open Source, Brazil.
http://async.com.br/~kiko/ | [+55 16] 261 2331 | NMFL