pyqt_reactive.widgets.shared.manager_action_controller
Action and code-editor workflows for manager widgets.
Classes
|
Declarative payload for the manager code editor template. |
Owns manager action dispatch, CRUD templates, and edited-code execution. |
|
|
Nominal operation port consumed by ManagerActionController. |
- class pyqt_reactive.widgets.shared.manager_action_controller.CodeEditorPayload(content: str = '', code_type: str = 'python', title: str = 'Code Editor', data: dict[str, ~typing.Any]=<factory>, missing_error_message: str = 'No valid assignments found in edited code')[source]
Declarative payload for the manager code editor template.
- class pyqt_reactive.widgets.shared.manager_action_controller.ManagerActionOperations(widget: Any, action_registry: Mapping[str, str], dynamic_actions: Mapping[str, str], resolve_method: Callable[[str], Callable[[...], Any]], run_async: Callable[[Callable[[...], Any]], None], selected_items: Callable[[], list[Any]], item_name_singular: str, item_name_plural: str, show_error: Callable[[str], None], validate_delete: Callable[[list[Any]], bool], perform_delete: Callable[[list[Any]], None], update_item_list: Callable[[], None], emit_items_changed: Callable[[], None], emit_status: Callable[[str], None], show_item_editor: Callable[[Any], None], validate_code_action: Callable[[], bool], code_payload: Any, pre_code_execution: Callable[[], None], patch_lazy_constructors: Callable[[], AbstractContextManager[Any]], migrate_code_namespace: Callable[[str, Exception, dict], dict | None], apply_code_namespace: Callable[[dict], bool], post_code_execution: Callable[[], None])[source]
Nominal operation port consumed by ManagerActionController.
- patch_lazy_constructors: Callable[[], AbstractContextManager[Any]]
- __init__(widget: Any, action_registry: Mapping[str, str], dynamic_actions: Mapping[str, str], resolve_method: Callable[[str], Callable[[...], Any]], run_async: Callable[[Callable[[...], Any]], None], selected_items: Callable[[], list[Any]], item_name_singular: str, item_name_plural: str, show_error: Callable[[str], None], validate_delete: Callable[[list[Any]], bool], perform_delete: Callable[[list[Any]], None], update_item_list: Callable[[], None], emit_items_changed: Callable[[], None], emit_status: Callable[[str], None], show_item_editor: Callable[[Any], None], validate_code_action: Callable[[], bool], code_payload: Any, pre_code_execution: Callable[[], None], patch_lazy_constructors: Callable[[], AbstractContextManager[Any]], migrate_code_namespace: Callable[[str, Exception, dict], dict | None], apply_code_namespace: Callable[[dict], bool], post_code_execution: Callable[[], None]) → None
- class pyqt_reactive.widgets.shared.manager_action_controller.ManagerActionController[source]
Owns manager action dispatch, CRUD templates, and edited-code execution.
- dispatch(operations: ManagerActionOperations, action: str) → None[source]
- delete_selected(operations: ManagerActionOperations) → None[source]
- edit_selected(operations: ManagerActionOperations) → None[source]
- open_code_editor(operations: ManagerActionOperations) → None[source]
- apply_edited_code(operations: ManagerActionOperations, code: str) → None[source]