Trees | Indices | Help |
|
---|
|
zope.interface.Interface --+ | IObservable
Classes that implement the IObservable interface agree to provide the Observer pattern for object attribute changes.
|
|||
|
|||
|
|||
|
|
Attaches an observer that will be notified when the specified attribute changes value. @param name the attribute name to observer @param observer the observer/listener to be notified @type observer callable |
Removes an observer from watching the specified attribute. @param name the attribute name to remove the observer from @param observer the observer/listener to be removed |
Notify all registered observers that an attribute has changed value. Register observers must be a Python callable and will receive the following keyword arguments: observerable - a reference to the observed object attrName - the attribute name that has changed oldValue - the previous value newValue - the new value @param name the attribute name that has changed @param oldValue the old attribute value @param newValue the new attribute value |
Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1.1812 on Tue Oct 11 12:51:34 2011 | http://epydoc.sourceforge.net |