cola.observable – Observable base class

This module provides the Observable class

class cola.observable.Observable

Handles subject/observer notifications.

add_observer(observer)
Adds an observer to this model
get_notify()
Returns True if notification is enabled
get_observers()
Returns the observer list
notify_observers(*param)
Notifies observers about attribute changes
remove_observer(observer)
Removes an observer
set_notify(notify=True)
Sets the notification state (bool)
set_observers(observers)
Sets the observer list