# HG changeset patch # User Goffi # Date 1616664580 -3600 # Node ID 388558a30cf8577f8ee5795774627b4f65341429 # Parent aada5471d6bc957bdf1f48c6b32d977850792cdf core (config): use component (i.e. "web") as config section diff -r aada5471d6bc -r 388558a30cf8 libervia/server/constants.py --- 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 diff -r aada5471d6bc -r 388558a30cf8 twisted/plugins/libervia_server.py --- 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]