From cd783cd98da9db5ebefd2271174b851c41dd0bed Mon Sep 17 00:00:00 2001 From: Quentin Defenouillere Date: Tue, 9 Jul 2019 11:53:05 +0200 Subject: [PATCH] [ganassurances] Cosmetic changes --- modules/ganassurances/browser.py | 6 +++--- modules/ganassurances/module.py | 15 +++++++++------ 2 files changed, 12 insertions(+), 9 deletions(-) diff --git a/modules/ganassurances/browser.py b/modules/ganassurances/browser.py index d3e5b6c923..28c8221544 100644 --- a/modules/ganassurances/browser.py +++ b/modules/ganassurances/browser.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- -# Copyright(C) 2012 Romain Bignon +# Copyright(C) 2012-2019 Budget Insight # # This file is part of a weboob module. # @@ -23,12 +23,12 @@ from weboob.browser import AbstractBrowser -class GanAssurances(AbstractBrowser): +class GanAssurancesBrowser(AbstractBrowser): PARENT = 'groupama' PARENT_ATTR = 'package.browser.GroupamaBrowser' def __init__(self, website, *args, **kwargs): - super(GanAssurances, self).__init__(*args, **kwargs) + super(GanAssurancesBrowser, self).__init__(*args, **kwargs) self.BASEURL = 'https://%s' % website self.website = re.findall('espaceclient.(.*?).fr', self.BASEURL)[0] diff --git a/modules/ganassurances/module.py b/modules/ganassurances/module.py index 8f0740dd03..eb1d2b2cf0 100644 --- a/modules/ganassurances/module.py +++ b/modules/ganassurances/module.py @@ -26,7 +26,7 @@ from weboob.tools.backend import AbstractModule, BackendConfig from weboob.tools.value import ValueBackendPassword, Value -from .browser import GanAssurances +from .browser import GanAssurancesBrowser __all__ = ['GanAssurancesModule'] @@ -49,11 +49,14 @@ class GanAssurancesModule(AbstractModule, CapBank): ValueBackendPassword('login', label='Identifiant / N° Client ou Email ou Mobile', masked=False), ValueBackendPassword('password', label='Mon mot de passe', regexp=r'^\d+$') ) - BROWSER = GanAssurances + PARENT = 'groupama' + BROWSER = GanAssurancesBrowser def create_default_browser(self): - return self.create_browser(self.config['website'].get(), - self.config['login'].get(), - self.config['password'].get(), - weboob=self.weboob) + return self.create_browser( + self.config['website'].get(), + self.config['login'].get(), + self.config['password'].get(), + weboob=self.weboob + ) -- GitLab