Commit 0111b561 authored by Julien Montagnat's avatar Julien Montagnat Committed by Vincent A

[lcl] fix browser initialization crash

The LCLBrowser is now a TwoFactorBrowser, the initialization
is different from other LCL browsers ("ent")
parent c942a092
......@@ -204,10 +204,6 @@ class LCLBrowser(TwoFactorBrowser):
def __init__(self, config, *args, **kwargs):
self.config = config
kwargs['username'] = self.config['login'].get()
kwargs['password'] = self.config['password'].get()
super(LCLBrowser, self).__init__(config, *args, **kwargs)
self.accounts_list = None
self.current_contract = None
......@@ -42,7 +42,7 @@ class LCLEnterpriseBrowser(LoginBrowser):
profile = URL('/outil/IQGA/FicheUtilisateur/maFicheUtilisateur', ProfilePage)
def __init__(self, *args, **kwargs):
def __init__(self, config, *args, **kwargs):
super(LCLEnterpriseBrowser, self).__init__(*args, **kwargs)
self.accounts = None
self.owner_type = AccountOwnerType.ORGANIZATION
......@@ -108,6 +108,8 @@ class LCLModule(Module, CapBankWealth, CapBankTransferAddRecipient, CapContact,
return self.create_browser(
def iter_accounts(self):
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