From 7cc50b7a0643e4cf93f6ea35eb7ba42a59b3b9ec Mon Sep 17 00:00:00 2001 From: Maxime Gasselin Date: Wed, 9 Sep 2020 18:08:53 +0200 Subject: [PATCH] [cmb] Add parent config attributes in module It avoids bad config instantiation from parent. --- modules/cmb/module.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/modules/cmb/module.py b/modules/cmb/module.py index 9c230c1e19..8f4d2c6c34 100644 --- a/modules/cmb/module.py +++ b/modules/cmb/module.py @@ -38,6 +38,14 @@ class CmbModule(AbstractModule, CapBankTransfer, CapContact): DESCRIPTION = u'Crédit Mutuel de Bretagne' LICENSE = 'LGPLv3+' PARENT = 'cmso' + CONFIG = BackendConfig( + ValueBackendPassword('login', label='Identifiant', masked=False), + ValueBackendPassword('password', label='Mot de passe'), + ValueTransient('code'), + ValueTransient('request_information'), + Value('website', label='Type de compte', default='par', + choices={'par': 'Particuliers', 'pro': 'Professionnels'}) + ) AVAILABLE_BROWSERS = {'par': CmbParBrowser, 'pro': CmbProBrowser} CONFIG = BackendConfig(ValueBackendPassword('login', label='Identifiant', masked=False), -- GitLab