comparison twisted/plugins/libervia_server.py @ 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 4117f1b63765
children 1f66a363f1a0
comparison
equal deleted inserted replaced
1401:aada5471d6bc 1402:388558a30cf8
179 # there's no good way to know 179 # there's no good way to know
180 # if the options values are the hard-coded ones or if they have been passed 180 # if the options values are the hard-coded ones or if they have been passed
181 # on the command line. 181 # on the command line.
182 182
183 # FIXME: must be refactored + code can be factorised with backend 183 # FIXME: must be refactored + code can be factorised with backend
184 config_parser = config.parseMainConf(True) 184 config_parser = config.parseMainConf()
185 self.handleDeprecated(config_parser) 185 self.handleDeprecated(config_parser)
186 for param in self.optParameters + OPT_PARAMETERS_CFG: 186 for param in self.optParameters + OPT_PARAMETERS_CFG:
187 name = param[0] 187 name = param[0]
188 env_name = f"{ENV_PREFIX}{name.upper()}" 188 env_name = f"{ENV_PREFIX}{name.upper()}"
189 try: 189 try: