Part of elisa.plugins.pigment.tests.test_pigment_frontend View In Hierarchy
Line # | Kind | Name | Docs |
---|---|---|---|
416 | Method | __init__ | Undocumented |
421 | Method | add_controller | Add a new controller to the frontend. The controller is the one that |
424 | Method | remove_controller | Remove a controller from the frontend. |
430 | Method | add_decorator | Add a decorator function for controllers matching path_pattern. |
433 | Method | remove_decorator | Remove a decorator function from the frontend. |
Inherited from PigmentFrontendExtensionMixin:
Line # | Kind | Name | Docs |
---|---|---|---|
154 | Method | create_controller | Create a controller for the given path. |
190 | Method | retrieve_controllers | Retrieve the list of controllers for a given path. |
69 | Method | _update_controller_mappings | Undocumented |
82 | Method | _load_controller_mappings | Load the controller mappings from all the enabled plugins' metadata. |
93 | Method | _update_decorator_mappings | Undocumented |
106 | Method | _load_decorator_mappings | Load the decorator mappings from all the enabled plugins' metadata. |
117 | Method | _plugin_status_changed_cb | Undocumented |
183 | Method | _store_controller | Undocumented |
235 | Method | _set_frontend | Undocumented |
240 | Method | _set_path | Undocumented |
245 | Method | _decorator_callback | Undocumented |
250 | Method | _decorator_errback | Undocumented |
256 | Method | _iterate_decorators_callback | Undocumented |
260 | Method | _iterate_decorators | Undocumented |
286 | Method | _decorate | Undocumented |
path_pattern
.
Parameters | path_pattern | regular expression pattern
(type: str
) |
controller | controller class or component path
(type: elisa.core.components.controller.Controller
or component path string of a controller class
) |
path_pattern
.
Parameters | path_pattern | a regular expression pattern
(type: str
) |
Add a decorator function for controllers matching path_pattern.
A controller decorator is a callable object that is called when a new controller is created. It can be used to alter the behaviour of a controller (say, the UI created by the controller). Controller decorators are called with a controller instance as their only argument and should return a deferred.Parameters | path_pattern | path pattern
(type: str
) |
decorator | decorator callable or decorator path string
(type: callable or str
) |