[elbe-devel] [PATCH 4/6] elbepack: daemon: drop "engine" parameter
Thomas Weißschuh
thomas.weissschuh at linutronix.de
Tue Jun 25 16:25:36 CEST 2024
It is not used anymore.
Signed-off-by: Thomas Weißschuh <thomas.weissschuh at linutronix.de>
---
elbepack/commands/daemon.py | 2 +-
elbepack/daemons/repo.py | 2 +-
elbepack/daemons/soap/__init__.py | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/elbepack/commands/daemon.py b/elbepack/commands/daemon.py
index e1ad8cf5a913..08b396eb043f 100644
--- a/elbepack/commands/daemon.py
+++ b/elbepack/commands/daemon.py
@@ -40,7 +40,7 @@ def run_command(argv):
print(f'enable {d}')
module = 'elbepack.daemons.' + str(d)
cmdmod = importlib.import_module(module)
- app = cmdmod.get_app(cherrypy.engine)
+ app = cmdmod.get_app()
if hasattr(app, 'stop'):
stack.callback(app.stop)
cherrypy.tree.graft(app, '/' + str(d))
diff --git a/elbepack/daemons/repo.py b/elbepack/daemons/repo.py
index dba7745a863b..482102fa673f 100644
--- a/elbepack/daemons/repo.py
+++ b/elbepack/daemons/repo.py
@@ -24,5 +24,5 @@ def _app(environ, respond):
return [b'not found']
-def get_app(engine):
+def get_app():
return _app
diff --git a/elbepack/daemons/soap/__init__.py b/elbepack/daemons/soap/__init__.py
index 055543a69962..09b8fb2a4b83 100644
--- a/elbepack/daemons/soap/__init__.py
+++ b/elbepack/daemons/soap/__init__.py
@@ -32,7 +32,7 @@ class MySession(SessionMiddleware):
self.pm.stop()
-def get_app(engine):
+def get_app():
app = EsoapApp([ESoap], 'soap',
in_protocol=Soap11(validator='lxml'),
--
2.45.2
More information about the elbe-devel
mailing list