From 5744a5b7a1777aebc88c1d8c2209d6f3345b6ad6 Mon Sep 17 00:00:00 2001 From: Romain Bignon Date: Tue, 7 Feb 2012 19:11:51 +0100 Subject: [PATCH] fix 'weboob-config list' filtered by capabilities (closes #786) --- weboob/applications/weboobcfg/weboobcfg.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/weboob/applications/weboobcfg/weboobcfg.py b/weboob/applications/weboobcfg/weboobcfg.py index c404c584..5cc617ef 100644 --- a/weboob/applications/weboobcfg/weboobcfg.py +++ b/weboob/applications/weboobcfg/weboobcfg.py @@ -121,13 +121,13 @@ class WeboobCfg(ReplApplication): """ caps = line.split() for instance_name, name, params in sorted(self.weboob.backends_config.iter_backends()): - backend = self.weboob.modules_loader.get_or_load_module(name) - if caps and not self.caps_included(backend.iter_caps(), caps): + module = self.weboob.modules_loader.get_or_load_module(name) + if caps and not module.has_caps(*caps): continue row = OrderedDict([('Name', instance_name), ('Module', name), ('Configuration', ', '.join( - '%s=%s' % (key, ('*****' if key in backend.config and backend.config[key].masked \ + '%s=%s' % (key, ('*****' if key in module.config and module.config[key].masked \ else value)) \ for key, value in params.iteritems())), ])