fix yaml config loader
This commit is contained in:
parent
913d89192e
commit
82e9108aa8
3 changed files with 3 additions and 3 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue