From 0a12fe6102da33977548ba0c277bd4fe34e262ab Mon Sep 17 00:00:00 2001 From: Jonas Dellinger Date: Thu, 16 Jun 2022 18:33:43 +0200 Subject: First draft of backend independent plugins --- backend/plugin/passive_plugin.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 backend/plugin/passive_plugin.py (limited to 'backend/plugin/passive_plugin.py') diff --git a/backend/plugin/passive_plugin.py b/backend/plugin/passive_plugin.py new file mode 100644 index 00000000..9b7907bb --- /dev/null +++ b/backend/plugin/passive_plugin.py @@ -0,0 +1,15 @@ +class PassivePlugin: + def __init__(self, logger) -> None: + self.logger + pass + + def call_method(self, method_name, args): + self.logger.debug(f"Tried to call method {method_name}, but plugin is in passive mode") + pass + + def execute_method(self, method_name, method_args): + self.logger.debug(f"Tried to execute method {method_name}, but plugin is in passive mode") + pass + + async def start(self): + pass# Empty stub -- cgit v1.2.3