Commit 82e9108a authored by Romain Bignon's avatar Romain Bignon

fix yaml config loader

parent 913d8919
......@@ -32,7 +32,7 @@ from weboob.capabilities.messages import ICapMessages
from weboob.tools.application import BaseApplication
class Monboob(BaseApplication):
APPNAME = 'mail'
APPNAME = 'monboob'
CONFIG = {'interval': 15,
'domain': 'weboob.example.org',
'recipient': 'weboob@example.org',
......@@ -45,7 +45,7 @@ class Monboob(BaseApplication):
print >>sys.stderr, "Also, you need to use 'weboobcfg' to set backend configs"
return -1
self.weboob.load_modules(ICapMessages)
self.weboob.load_backends(ICapMessages)
self.weboob.schedule(self.config.get('interval'), self.process)
self.weboob.loop()
......
......@@ -46,7 +46,7 @@ class BaseApplication(object):
if klass is None:
# load Config only here because some applications don't want
# to depend on yaml and do not use this function
from weboob.tools.config.yaml import YamlConfig
from weboob.tools.config.yamlconfig import YamlConfig
klass = YamlConfig
if path is None:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment