Mercurial > libervia-backend
diff src/plugins/plugin_misc_account.py @ 1234:9c17bd37e6e5
core: better management of default value in getConfig
author | Goffi <goffi@goffi.org> |
---|---|
date | Tue, 07 Oct 2014 17:12:41 +0200 |
parents | 628e320eab1f |
children | 069ad98b360d |
line wrap: on
line diff
--- a/src/plugins/plugin_misc_account.py Mon Oct 06 17:25:41 2014 +0200 +++ b/src/plugins/plugin_misc_account.py Tue Oct 07 17:12:41 2014 +0200 @@ -151,7 +151,7 @@ self.__delete_account_id = host.registerCallback(self.__deleteAccountCb, with_data=True) def getConfig(self, name): - return self.host.memory.getConfig(CONFIG_SECTION, name) or default_conf[name] + return self.host.memory.getConfig(CONFIG_SECTION, name, default_conf[name]) def _registerAccount(self, email, password, profile):