Package elisa :: Package core :: Package observers :: Module observer :: Class Observer
[hide private]
[frames] | no frames]

Class Observer

source code


Instances of Observer are notified of changes happening in the elisa.core.observers.observable.Observable instance they are attached to.

Instance Methods [hide private]
 
attribute_set(self, origin, key, old_value, new_value)
Called when an attribute of the observed object is changed.
source code

Inherited from object: __delattr__, __getattribute__, __hash__, __init__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

attribute_set(self, origin, key, old_value, new_value)

source code 
Called when an attribute of the observed object is changed.
Parameters:
  • origin (any) - observed object for which the attribute is changed
  • key (string) - attribute changed
  • old_value (any) - value of the attribute before being set; None if attribute was not existing
  • new_value (any) - value of the attribute after being set