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):
|
2026-02-18 23:45:07 -06:00
|
|
|
if not target_id in widget_registery.objects:
|
|
|
|
|
raise InvalidPluginException('Unknown UI "target_id" given in requests.')
|
2026-01-18 20:33:49 -06:00
|
|
|
|
2026-02-18 23:45:07 -06:00
|
|
|
return widget_registery.objects[target_id]
|