Mercurial > libervia-web
comparison src/twisted/plugins/libervia_server.py @ 817:cf1812a4445e
server: fixed empty_password_allowed_warning_dangerous_list option
author | Goffi <goffi@goffi.org> |
---|---|
date | Sat, 26 Dec 2015 14:36:45 +0100 |
parents | e8c0c2b5e2d5 |
children | f8a7a046ff9c |
comparison
equal
deleted
inserted
replaced
816:0fd4b81972c0 | 817:cf1812a4445e |
---|---|
123 except IndexError: # the coerce method is optional | 123 except IndexError: # the coerce method is optional |
124 param[2] = value | 124 param[2] = value |
125 except (ConfigParser.NoSectionError, ConfigParser.NoOptionError): | 125 except (ConfigParser.NoSectionError, ConfigParser.NoOptionError): |
126 pass | 126 pass |
127 usage.Options.__init__(self) | 127 usage.Options.__init__(self) |
128 for opt_data in OPT_PARAMETERS_CFG: | |
129 self[opt_data[0]] = opt_data[2] | |
128 | 130 |
129 def handleDeprecated(self, config_parser): | 131 def handleDeprecated(self, config_parser): |
130 """display warning and/or change option when a deprecated option if found | 132 """display warning and/or change option when a deprecated option if found |
131 | 133 |
132 param config_parser(ConfigParser): read ConfigParser instance for sat.conf | 134 param config_parser(ConfigParser): read ConfigParser instance for sat.conf |