Package elisa :: Package core :: Package tests :: Module test_controller :: Class FooController
[hide private]
[frames] | no frames]

Class FooController

source code


Nested Classes [hide private]

Inherited from component.Component: __metaclass__

Instance Methods [hide private]
 
__init__(self)
Lazily set name from class name styled with underscores (class ComponentBar -> name component_bar.
source code
 
reset(self) source code
 
model_changed(self, old_model, new_model)
Called when model is set to a new value.
source code
 
backend_changed(self, old_backend, new_backend)
Called when backend is set to a new value.
source code

Inherited from base_components.controller.Controller: attribute_set, backend__get, backend__set, focus, focused__get, focused__set, focused_changed, handle_input, initialize, model__get, model__set, parent__get, parent__set

Inherited from component.Component: clean, load_config, save_config

Inherited from observers.observable.Observable: __setattr__, add_observer, remove_observer

Inherited from extern.log.log.Loggable: debug, doLog, error, info, log, logFunction, logObjectName, warning, warningFailure

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

Static Methods [hide private]

Inherited from component.Component: __classinit__

Class Variables [hide private]
tuple of strings supported_models = "base_test:foo_model",
list of models that are compatible with the controller identified by their path: 'plugin:model'
dictionary: keys: strings; values: list of strings or strings bindings = {"model_child1": "controller_child1", "model_child2...
associations between model's attribute and Controller's attributes; if an attribute contained in bindings' keys is changed or created in model, it is replicated in all the corresponding attributes of the controller defined in bindings values

Inherited from base_components.controller.Controller: name

Inherited from component.Component: checked, config_doc, default_config, id, plugin

Inherited from observers.observable.Observable (private): _observers

Inherited from extern.log.log.Loggable: logCategory

Instance Variables [hide private]

Inherited from base_components.controller.Controller: backend, focused, model, parent

Inherited from component.Component: config, path

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self)
(Constructor)

source code 
Lazily set name from class name styled with underscores (class ComponentBar -> name component_bar. Also set log category based on component name, with a 'comp_' prefix.
Overrides: base_components.controller.Controller.__init__

model_changed(self, old_model, new_model)

source code 

Called when model is set to a new value.

Override if you wish to react to that change. Do not forget to call the parent class method.
Overrides: base_components.controller.Controller.model_changed
(inherited documentation)

backend_changed(self, old_backend, new_backend)

source code 

Called when backend is set to a new value.

Override if you wish to react to that change. Do not forget to call the parent class method.
Overrides: base_components.controller.Controller.backend_changed
(inherited documentation)

Class Variable Details [hide private]

bindings

associations between model's attribute and Controller's attributes; if an attribute contained in bindings' keys is changed or created in model, it is replicated in all the corresponding attributes of the controller defined in bindings values
Type:
dictionary: keys: strings; values: list of strings or strings
Value:
{"model_child1": "controller_child1", "model_child2": ["controller_chi\
ld2", "controller_child3"]}