[weboob-config][cmb] Couldn't add params to a cmb backend using weboob-config
Hello,
I couldn't add cmb's params values (login & password & website) when I created a backend with weboob-config. The params were just ignored.
$ weboob-config add cmb cmb_name login=XXXXX password=XXXXXX website=par
Happened to create a backend like this :
{"Name": "cmb_name", "Module": "cmb", "Configuration": ""}
Adding the module through boobank worked fine though.
CMB seems to herit from CMSO but the CONFIG attribute seems to be ignored.
My correction :
I overwrited the CONFIG attribute by adding the belowed line into the CmbModule class (copied FROM CMSO class)
CONFIG = BackendConfig(ValueBackendPassword('login', label='Identifiant', masked=False),ValueBackendPassword('password', label='Mot de passe'),Value('website', label='Type de compte', default='par',choices={'par': 'Particuliers', 'pro': 'Professionnels'}))
Then I added the two belowed line to the imports :
from weboob.tools.backend import Module, BackendConfig
from weboob.tools.value import Value, ValueBackendPassword
I works fine now... I don't know why the CONFIG attribute is not herited... Maybe there's a glitch here :
parent = weboob.load_or_install_module(cls.PARENT).klass
Anywhay I had no time left to find out what happens here.