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
|
from weboob.tools.application import BaseApplication
|
||||||
|
|
||||||
class Monboob(BaseApplication):
|
class Monboob(BaseApplication):
|
||||||
APPNAME = 'mail'
|
APPNAME = 'monboob'
|
||||||
CONFIG = {'interval': 15,
|
CONFIG = {'interval': 15,
|
||||||
'domain': 'weboob.example.org',
|
'domain': 'weboob.example.org',
|
||||||
'recipient': '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"
|
print >>sys.stderr, "Also, you need to use 'weboobcfg' to set backend configs"
|
||||||
return -1
|
return -1
|
||||||
|
|
||||||
self.weboob.load_modules(ICapMessages)
|
self.weboob.load_backends(ICapMessages)
|
||||||
|
|
||||||
self.weboob.schedule(self.config.get('interval'), self.process)
|
self.weboob.schedule(self.config.get('interval'), self.process)
|
||||||
self.weboob.loop()
|
self.weboob.loop()
|
||||||
|
|
|
||||||
|
|
@ -46,7 +46,7 @@ class BaseApplication(object):
|
||||||
if klass is None:
|
if klass is None:
|
||||||
# load Config only here because some applications don't want
|
# load Config only here because some applications don't want
|
||||||
# to depend on yaml and do not use this function
|
# 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
|
klass = YamlConfig
|
||||||
|
|
||||||
if path is None:
|
if path is None:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue