Mercurial > libervia-backend
comparison src/tools/config.py @ 1236:251ae99a6c0e
core (config): fixed a bad option check
author | Goffi <goffi@goffi.org> |
---|---|
date | Thu, 16 Oct 2014 20:10:08 +0200 |
parents | 80d2ed788b40 |
children | 069ad98b360d |
comparison
equal
deleted
inserted
replaced
1235:80d2ed788b40 | 1236:251ae99a6c0e |
---|---|
59 config.add_section(section) | 59 config.add_section(section) |
60 config.set(section, option, value) | 60 config.set(section, option, value) |
61 with open(target_file, 'wb') as configfile: | 61 with open(target_file, 'wb') as configfile: |
62 config.write(configfile) # for the next time that user launches sat | 62 config.write(configfile) # for the next time that user launches sat |
63 if not silent: | 63 if not silent: |
64 if option in ('passphrase'): # list here the options storing a password | 64 if option in ('passphrase',): # list here the options storing a password |
65 value = '******' | 65 value = '******' |
66 log.warning(_("Config auto-update: %(option)s set to %(value)s in the file %(config_file)s") % | 66 log.warning(_("Config auto-update: %(option)s set to %(value)s in the file %(config_file)s") % |
67 {'option': option, 'value': value, 'config_file': target_file}) | 67 {'option': option, 'value': value, 'config_file': target_file}) |
68 | 68 |
69 | 69 |