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():
|
||||
self.values = load_section(section)
|
||||
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:
|
||||
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)
|
||||
return self.values
|
||||
|
||||
|
|
|
|||
|
|
@ -40,10 +40,10 @@ class YamlConfig(IConfig):
|
|||
try:
|
||||
with open(self.path, 'r') as 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:
|
||||
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:
|
||||
self.values = {}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue