changeset 1397:ed037818d6de

core (constants): renaming following global project renaming
author Goffi <goffi@goffi.org>
date Sat, 20 Mar 2021 18:20:39 +0100
parents 822bd0139769
children 556df721aa69
files libervia/server/constants.py libervia/server/server.py twisted/plugins/libervia_server.py
diffstat 3 files changed, 10 insertions(+), 9 deletions(-) [+]
line wrap: on
line diff
--- a/libervia/server/constants.py	Fri Mar 19 15:47:10 2021 +0100
+++ b/libervia/server/constants.py	Sat Mar 20 18:20:39 2021 +0100
@@ -21,9 +21,11 @@
 
 class Const(constants.Const):
 
-    APP_NAME = "Libervia"
-    APP_NAME_FILE = "libervia"
-    CONFIG_SECTION = APP_NAME.lower()
+    APP_NAME = "Libervia Web"
+    APP_COMPONENT = "web"
+    APP_NAME_ALT = APP_NAME
+    APP_NAME_FILE = "libervia_web"
+    CONFIG_SECTION = APP_NAME_FILE.lower()
     SERVICE_PROFILE = "libervia"  # the SàT profile that is used for exporting the service
 
     SESSION_TIMEOUT = 7200  # Session's timeout, after that the user will be disconnected
--- a/libervia/server/server.py	Fri Mar 19 15:47:10 2021 +0100
+++ b/libervia/server/server.py	Sat Mar 20 18:20:39 2021 +0100
@@ -1,6 +1,6 @@
 #!/usr/bin/env python3
 
-# Libervia: a Salut à Toi frontend
+# Libervia Web
 # Copyright (C) 2011-2021 Jérôme Poisson <goffi@goffi.org>
 
 # This program is free software: you can redistribute it and/or modify
@@ -1047,7 +1047,7 @@
                 )
 
     async def backendReady(self):
-        log.info(f"Libervia v{self.full_version}")
+        log.info(f"Libervia Web v{self.full_version}")
 
         # settings
         if self.options['dev-mode']:
--- a/twisted/plugins/libervia_server.py	Fri Mar 19 15:47:10 2021 +0100
+++ b/twisted/plugins/libervia_server.py	Sat Mar 20 18:20:39 2021 +0100
@@ -1,8 +1,7 @@
 #!/usr/bin/env python3
 
-
-# Libervia: a Salut à Toi frontend
-# Copyright (C) 2013-2018 Jérôme Poisson <goffi@goffi.org>
+# Libervia Web: Libervia web frontend
+# Copyright (C) 2013-2021 Jérôme Poisson <goffi@goffi.org>
 # Copyright (C) 2013-2016 Adrien Cossa <souliane@mailoo.org>
 # Copyright (C) 2013  Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
 
@@ -224,7 +223,7 @@
 class LiberviaMaker(object):
 
     tapname = C.APP_NAME_FILE
-    description = _("The web frontend of Salut à Toi")
+    description = _("The web frontend of Libervia")
     options = Options
 
     def makeService(self, options):