s/frontend/application/
This commit is contained in:
parent
091db6af4f
commit
ae4b7cd23b
2 changed files with 4 additions and 4 deletions
|
|
@ -50,10 +50,10 @@ class INIConfig(IConfig):
|
||||||
for section in self.config.sections():
|
for section in self.config.sections():
|
||||||
self.values = load_section(section)
|
self.values = load_section(section)
|
||||||
self.values.update(self.config.items('DEFAULT'))
|
self.values.update(self.config.items('DEFAULT'))
|
||||||
logging.debug(u'Frontend configuration file loaded: %s.' % self.path)
|
logging.debug(u'Application configuration file loaded: %s.' % self.path)
|
||||||
else:
|
else:
|
||||||
self.save()
|
self.save()
|
||||||
logging.debug(u'Frontend configuration file created with default values: %s. '
|
logging.debug(u'Application configuration file created with default values: %s. '
|
||||||
'Please customize it.' % self.path)
|
'Please customize it.' % self.path)
|
||||||
return self.values
|
return self.values
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -40,10 +40,10 @@ class YamlConfig(IConfig):
|
||||||
try:
|
try:
|
||||||
with open(self.path, 'r') as f:
|
with open(self.path, 'r') as f:
|
||||||
self.values = yaml.load(f)
|
self.values = yaml.load(f)
|
||||||
logging.debug(u'Frontend configuration file loaded: %s.' % self.path)
|
logging.debug(u'Application configuration file loaded: %s.' % self.path)
|
||||||
except IOError:
|
except IOError:
|
||||||
self.save()
|
self.save()
|
||||||
logging.debug(u'Frontend configuration file created with default values: %s. Please customize it.' % self.path)
|
logging.debug(u'Application configuration file created with default values: %s. Please customize it.' % self.path)
|
||||||
|
|
||||||
if self.values is None:
|
if self.values is None:
|
||||||
self.values = {}
|
self.values = {}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue