cola.models.observable – Observable base class

class cola.models.observable.ObservableModel

Combines serialization from Model with the Observer pattern

clone()
Override Model.clone() to handle observers
static instance(path)
Override Model.instance() to account for unserializable data.
remove_unserializable_attributes()
Remove unserializable instance attributes.
restore_unserializable_attributes(attributes)
Restores unserializable instance attributes.
save(path)

Saves state to a file. Overrides the base method.

Hides internal observable attributes when serializing.

set_param(param, value, notify=True, check_params=False)
Override Model.set_param() to handle notification

Previous topic

cola.models.main – Main application model

Next topic

Views

This Page