Mercurial > libervia-web
changeset 1402:388558a30cf8
core (config): use component (i.e. "web") as config section
author | Goffi <goffi@goffi.org> |
---|---|
date | Thu, 25 Mar 2021 10:29:40 +0100 |
parents | aada5471d6bc |
children | 1357d04107d1 |
files | libervia/server/constants.py twisted/plugins/libervia_server.py |
diffstat | 2 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/libervia/server/constants.py Sat Mar 20 20:58:45 2021 +0100 +++ b/libervia/server/constants.py Thu Mar 25 10:29:40 2021 +0100 @@ -25,7 +25,7 @@ APP_COMPONENT = "web" APP_NAME_ALT = APP_NAME APP_NAME_FILE = "libervia_web" - CONFIG_SECTION = APP_NAME_FILE.lower() + CONFIG_SECTION = APP_COMPONENT.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/twisted/plugins/libervia_server.py Sat Mar 20 20:58:45 2021 +0100 +++ b/twisted/plugins/libervia_server.py Thu Mar 25 10:29:40 2021 +0100 @@ -181,7 +181,7 @@ # on the command line. # FIXME: must be refactored + code can be factorised with backend - config_parser = config.parseMainConf(True) + config_parser = config.parseMainConf() self.handleDeprecated(config_parser) for param in self.optParameters + OPT_PARAMETERS_CFG: name = param[0]