Commit cd783cd9 authored by Quentin Defenouillere's avatar Quentin Defenouillere Committed by ntome

[ganassurances] Cosmetic changes

parent e2ed74f3
# -*- 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 @@ import re
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]
......@@ -26,7 +26,7 @@ from weboob.capabilities.bank import CapBank
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
)
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