Commit 4ff3c04b authored by Guillaume Risbourg's avatar Guillaume Risbourg Committed by Vincent A

[ldlc] Fixed __init__ bug on LdlcParBrowser

Closes: 10942@zendesk
parent 0d318ca8
......@@ -29,8 +29,9 @@ class LdlcParBrowser(AbstractBrowser):
documents = URL(r'/fr-fr/Orders/PartialCompletedOrdersHeader', DocumentsPage)
def __init__(self, *args, **kwargs):
super(LdlcParBrowser, self).__init__(*args, **kwargs)
def __init__(self, config, *args, **kwargs):
super(LdlcParBrowser, self).__init__(config, *args, **kwargs)
self.config = config
self.lang = 'fr-fr/'
@need_login
......
......@@ -50,7 +50,12 @@ class LdlcModule(AbstractModule, CapDocument):
def create_default_browser(self):
if self.config['website'].get() == 'part':
self.BROWSER = LdlcParBrowser
return self.create_browser(self.config['login'].get(), self.config['password'].get(), weboob=self.weboob)
return self.create_browser(
self.config,
self.config['login'].get(),
self.config['password'].get(),
weboob=self.weboob,
)
else:
self.BROWSER = LdlcProBrowser
return self.create_browser(self.config, self.config['login'].get(), self.config['password'].get())
......
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