diff --git a/modules/onlinenet/module.py b/modules/onlinenet/module.py index 844433a12fa25b5c11713455c1f035aaf79d47bb..44746f5cff1afb8f09cc721075c615390ac402ed 100644 --- a/modules/onlinenet/module.py +++ b/modules/onlinenet/module.py @@ -37,8 +37,10 @@ class OnlinenetModule(Module, CapDocument): EMAIL = 'elambert@budget-insight.com' LICENSE = 'LGPLv3+' VERSION = '1.6' - CONFIG = BackendConfig(Value('login', label='Identifiant'), - ValueBackendPassword('password', label='Mot de passe')) + CONFIG = BackendConfig( + Value('login', label='Identifiant'), + ValueBackendPassword('password', label='Mot de passe'), + ) BROWSER = OnlinenetBrowser diff --git a/modules/onlinenet/pages.py b/modules/onlinenet/pages.py index 42fd0135c7dc0dfaafd29a233701e2aaa9bc6f0d..0ad4ab0a1a527516c4c8979cc9a648610beaca75 100644 --- a/modules/onlinenet/pages.py +++ b/modules/onlinenet/pages.py @@ -43,7 +43,11 @@ class get_list(ListElement): class item(ItemElement): klass = Subscription - obj_subscriber = Format('%s %s', CleanText('//label[@for="form_firstname"]/../following-sibling::div'), CleanText('//label[@for="form_firstname"]/../following-sibling::div')) + obj_subscriber = Format( + '%s %s', + CleanText('//label[@for="form_firstname"]/../following-sibling::div'), + CleanText('//label[@for="form_firstname"]/../following-sibling::div') + ) obj_id = Env('username') obj_label = obj_id @@ -79,7 +83,6 @@ def condition(self): def parse(self, el): self.env['username'] = self.page.browser.username - @method class get_documents(ListElement): item_xpath = '//a[contains(@href, ".pdf")]'