Commit a41c5394 authored by Romain Bignon's avatar Romain Bignon

configured backend parameter '_enabled' to enable or disable it

parent d710c93b
......@@ -75,7 +75,8 @@ class Weboob(object):
for instance_name, backend_name, params in self.backends_config.iter_backends():
backend = self.backends_loader.get_or_load_backend(backend_name)
if caps is not None and not backend.has_caps(caps) or \
names is not None and instance_name not in names:
names is not None and instance_name not in names or \
'_enabled' in params and not params['_enabled']:
continue
backend_instance = backend.create_instance(self, instance_name, params, storage)
self.backend_instances[instance_name] = loaded[instance_name] = backend_instance
......
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