comparison 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
comparison
equal deleted inserted replaced
1233:0b87d029f0a3 1234:9c17bd37e6e5
149 self.__delete_posts_comments_id = host.registerCallback(deleteBlogCallback(True, True), with_data=True) 149 self.__delete_posts_comments_id = host.registerCallback(deleteBlogCallback(True, True), with_data=True)
150 150
151 self.__delete_account_id = host.registerCallback(self.__deleteAccountCb, with_data=True) 151 self.__delete_account_id = host.registerCallback(self.__deleteAccountCb, with_data=True)
152 152
153 def getConfig(self, name): 153 def getConfig(self, name):
154 return self.host.memory.getConfig(CONFIG_SECTION, name) or default_conf[name] 154 return self.host.memory.getConfig(CONFIG_SECTION, name, default_conf[name])
155 155
156 def _registerAccount(self, email, password, profile): 156 def _registerAccount(self, email, password, profile):
157 157
158 """ 158 """
159 #Password Generation 159 #Password Generation