Package Products :: Package ZenUtils :: Module observable :: Class ObservableMixin
[hide private]
[frames] | no frames]

Class ObservableMixin

source code

object --+
         |
        ObservableMixin

A mixin class that provides an implementation of the IObservable interface for any new-style class to use. This implementation will provide notification for all attribute changes, except for the attributes used to track the registered observers themselves.

Instance Methods [hide private]
 
__init__(self)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
attachAttributeObserver(self, name, observer) source code
 
detachAttributeObserver(self, name, observer) source code
 
notifyAttributeChange(self, name, oldValue, newValue) source code
 
__setattr__(self, name, newValue)
x.__setattr__('name', value) <==> x.name = value
source code

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

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self)
(Constructor)

source code 
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
Overrides: object.__init__
(inherited documentation)

__setattr__(self, name, newValue)

source code 
x.__setattr__('name', value) <==> x.name = value
Overrides: object.__setattr__
(inherited documentation)