Fixed dispatcher and registry

This commit is contained in:
Lyncoln
2026-10-09 03:18:21 -04:00
parent f4742f00e0
commit e6b2722708
21 changed files with 125 additions and 72 deletions
+17
View File
@@ -0,0 +1,17 @@
import importlib
from lifecyclemanager import manageLifecycle
from dispatchstate import buildState
def buildDispatch(request):
dispatch = []
for key in request["module"]:
dispatch.append(request["module"][key])
resolveddispatch = "plugins."+ ".".join(dispatch)
module = importlib.import_module(resolveddispatch)
mode = request.get("mode", "oneshot")
return module, mode