Mercurial > libervia-web
comparison twisted/plugins/libervia_server.py @ 1365:10517a8698ca
server: removed unused legacy code.
author | Goffi <goffi@goffi.org> |
---|---|
date | Fri, 20 Nov 2020 17:53:38 +0100 |
parents | df40708c4c76 |
children | f61e95438050 |
comparison
equal
deleted
inserted
replaced
1364:df40708c4c76 | 1365:10517a8698ca |
---|---|
155 # XXX: We need to configure logs before any log method is used, | 155 # XXX: We need to configure logs before any log method is used, |
156 # so here is the best place. | 156 # so here is the best place. |
157 from sat.core import log_config | 157 from sat.core import log_config |
158 | 158 |
159 log_config.satConfigure(C.LOG_BACKEND_TWISTED, C, backend_data=options) | 159 log_config.satConfigure(C.LOG_BACKEND_TWISTED, C, backend_data=options) |
160 from libervia.server import server | |
161 | |
162 # we can't import this file from libervia.server.server because it's not a true module | |
163 # (there is no __init__.py file, as required by twistd plugin system), so we set the | |
164 # global values from here | |
165 server.DATA_DIR_DEFAULT = DATA_DIR_DEFAULT | |
166 server.OPT_PARAMETERS_BOTH = OPT_PARAMETERS_BOTH | |
167 server.OPT_PARAMETERS_CFG = OPT_PARAMETERS_CFG | |
168 | 160 |
169 | 161 |
170 class Options(usage.Options): | 162 class Options(usage.Options): |
171 # optArgs is not really useful in our case, we need more than a flag | 163 # optArgs is not really useful in our case, we need more than a flag |
172 optParameters = OPT_PARAMETERS_BOTH | 164 optParameters = OPT_PARAMETERS_BOTH |