2026-01-18 20:33:49 -06:00
|
|
|
# Python imports
|
|
|
|
|
|
|
|
|
|
# Lib imports
|
|
|
|
|
|
|
|
|
|
# Application imports
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2026-02-14 16:15:54 -06:00
|
|
|
class InvalidPluginException(Exception):
|
|
|
|
|
...
|
|
|
|
|
|
|
|
|
|
|
2026-01-18 20:33:49 -06:00
|
|
|
|
|
|
|
|
class PluginsControllerMixin:
|
|
|
|
|
|
|
|
|
|
def requests_ui_element(self, target_id: str):
|
|
|
|
|
builder = settings_manager.get_builder()
|
|
|
|
|
ui_target = builder.get_object(target_id)
|
|
|
|
|
|
|
|
|
|
if not ui_target:
|
|
|
|
|
raise InvalidPluginException('Unknown "target_id" given in requests.')
|
|
|
|
|
|
|
|
|
|
return ui_target
|