support of backend capabilities
This commit is contained in:
parent
458c92b4f8
commit
2aa2e01bc5
10 changed files with 147 additions and 8 deletions
|
|
@ -34,3 +34,10 @@ class Weboob:
|
|||
self.modules_loader = ModulesLoader()
|
||||
self.modules_loader.load()
|
||||
|
||||
def loadmodules(self, caps=None, name=None):
|
||||
for name, module in self.modules_loader.modules.iteritems():
|
||||
if (not caps or module.hasCaps(caps)) and \
|
||||
(not name or module.name == name):
|
||||
backend = module.createBackend()
|
||||
self.backends[module.name] = backend
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue