Mercurial > libervia-web
diff twisted/plugins/libervia.py @ 421:39b07289ff42
server_side: added parameter port_https_ext (external port for HTTPS, used for example for the redirection)
author | souliane <souliane@mailoo.org> |
---|---|
date | Tue, 25 Mar 2014 16:09:12 +0100 |
parents | 2bd609d7dd65 |
children | 8ecc5a7062e4 |
line wrap: on
line diff
--- a/twisted/plugins/libervia.py Mon Mar 24 17:18:09 2014 +0100 +++ b/twisted/plugins/libervia.py Tue Mar 25 16:09:12 2014 +0100 @@ -48,6 +48,8 @@ If you do it later: after the command line options have been parsed, there's no good way to know if the options values are the hard-coded ones or if they have been passed on the command line. """ + config = SafeConfigParser() + config.read(Const.CONFIG_FILES) for index in xrange(0, len(self.optParameters)): name = self.optParameters[index][0] try: @@ -67,8 +69,6 @@ def makeService(self, options): return Libervia(**dict(options)) # get rid of the usage.Option overload -config_path = save_config_path('sat') -config = SafeConfigParser() -config.read(Const.CONFIG_FILES) +# affectation to some variable is necessary for twisted introspection to work serviceMaker = LiberviaMaker()