s/BaseBackend/BaseModule
This commit is contained in:
parent
3297651bdc
commit
8559af3d6a
165 changed files with 354 additions and 354 deletions
|
|
@ -29,7 +29,7 @@ from weboob.tools.log import getLogger
|
|||
from weboob.tools.value import ValuesDict
|
||||
|
||||
|
||||
__all__ = ['BackendStorage', 'BackendConfig', 'BaseBackend']
|
||||
__all__ = ['BackendStorage', 'BackendConfig', 'BaseModule']
|
||||
|
||||
|
||||
class BackendStorage(object):
|
||||
|
|
@ -37,8 +37,8 @@ class BackendStorage(object):
|
|||
This is an abstract layer to store data in storages (:mod:`weboob.tools.storage`)
|
||||
easily.
|
||||
|
||||
It is instancied automatically in constructor of :class:`BaseBackend`, in the
|
||||
:attr:`BaseBackend.storage` attribute.
|
||||
It is instancied automatically in constructor of :class:`BaseModule`, in the
|
||||
:attr:`BaseModule.storage` attribute.
|
||||
|
||||
:param name: name of backend
|
||||
:param storage: storage object
|
||||
|
|
@ -156,7 +156,7 @@ class BackendConfig(ValuesDict):
|
|||
|
||||
if value is None:
|
||||
if not nofail and field.required:
|
||||
raise BaseBackend.ConfigError('Backend(%s): Configuration error: Missing parameter "%s" (%s)'
|
||||
raise BaseModule.ConfigError('Backend(%s): Configuration error: Missing parameter "%s" (%s)'
|
||||
% (cfg.instname, name, field.description))
|
||||
value = field.default
|
||||
|
||||
|
|
@ -165,7 +165,7 @@ class BackendConfig(ValuesDict):
|
|||
field.load(cfg.instname, value, cfg.weboob.callbacks)
|
||||
except ValueError as v:
|
||||
if not nofail:
|
||||
raise BaseBackend.ConfigError(
|
||||
raise BaseModule.ConfigError(
|
||||
'Backend(%s): Configuration error for field "%s": %s' % (cfg.instname, name, v))
|
||||
|
||||
cfg[name] = field
|
||||
|
|
@ -202,7 +202,7 @@ class BackendConfig(ValuesDict):
|
|||
self.weboob.backends_config.add_backend(self.instname, self.modname, dump, edit)
|
||||
|
||||
|
||||
class BaseBackend(object):
|
||||
class BaseModule(object):
|
||||
"""
|
||||
Base class for backends.
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue