changeset 1460:0ea54090e414

server: renamed `sat-app` to `libervia-app` following global renaming
author Goffi <goffi@goffi.org>
date Wed, 29 Sep 2021 17:39:37 +0200
parents 47db314e60ca
children 8ac062d2ff8b
files libervia/server/server.py
diffstat 1 files changed, 5 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/libervia/server/server.py	Wed Sep 29 17:39:35 2021 +0200
+++ b/libervia/server/server.py	Wed Sep 29 17:39:37 2021 +0200
@@ -180,6 +180,7 @@
     def getChildForRequest(self, request):
         return super().getChildForRequest(request)
 
+
 class LiberviaRootResource(ProtectedFile):
     """Specialized resource for Libervia root
 
@@ -235,8 +236,8 @@
         self.pages_redirects = {}
         self.cached_urls = {}
         self.main_menu = None
-        # map SàT application names => data
-        self.sat_apps = {}
+        # map Libervia application names => data
+        self.libervia_apps = {}
         self.build_path = host.getBuildPath(site_name)
         self.build_path.mkdir(parents=True, exist_ok=True)
         self.dev_build_path = host.getBuildPath(site_name, dev=True)
@@ -296,7 +297,7 @@
         await self.host.bridgeCall(
             "applicationStart", app_name, data_format.serialise(extra)
         )
-        app_data = self.sat_apps[app_name] = data_format.deserialise(
+        app_data = self.libervia_apps[app_name] = data_format.deserialise(
             await self.host.bridgeCall(
                 "applicationExposedGet", app_name, "", ""))
 
@@ -549,7 +550,7 @@
                     log.error(msg)
                     raise ValueError(msg)
                 page_name, url = menu
-            elif menu.startswith("sat-app:"):
+            elif menu.startswith("libervia-app:"):
                 app_name = menu[8:].strip().lower()
                 app_data = await self._startApp(app_name)
                 front_url = app_data['front_url']