Package elisa :: Package core :: Package tests :: Module test_view :: Class FooView
[hide private]
[frames] | no frames]

Class FooView

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
 
controller_changed(self, old_controller, new_controller)
Called when controller is set to a new value.
source code
 
frontend_changed(self, old_frontend, new_frontend)
Called when frontend is set to a new value.
source code

Inherited from base_components.view.View: attribute_set, clean, controller__get, controller__set, frontend__get, frontend__set, initialize, parent__get, parent__set, update

Inherited from component.Component: load_config, save_config

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__, __setattr__, __str__

Static Methods [hide private]

Inherited from component.Component: __classinit__

Class Variables [hide private]
tuple of strings supported_controllers = "base_test:foo_controller",
list of controllers that are compatible with the view identified by their path: 'plugin:controller'
dictionary: keys: strings; values: list of strings or strings bindings = {"controller_child1": "view_child1", "controller_ch...
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.view.View: context_path, name

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

Inherited from extern.log.log.Loggable: logCategory

Instance Variables [hide private]

Inherited from base_components.view.View: context_handle, controller, frontend, 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.view.View.__init__

controller_changed(self, old_controller, new_controller)

source code 

Called when controller 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.view.View.controller_changed
(inherited documentation)

frontend_changed(self, old_frontend, new_frontend)

source code 

Called when frontend 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.view.View.frontend_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:
{"controller_child1": "view_child1", "controller_child2": ["view_child\
2", "view_child3"]}