Commit 684d4c24 authored by Maxime Gasselin's avatar Maxime Gasselin Committed by Romain Bignon

[pradoepargne] fix login

The connector is coherent with humanis connector. Moreover
the login url has been modified.
parent 5cf9b644
......@@ -18,8 +18,15 @@
# along with weboob. If not, see <>.
from weboob.browser import AbstractBrowser
from weboob.browser import AbstractBrowser, URL
from .pages import LoginPage
class CmesBrowser(AbstractBrowser):
class PradoBrowser(AbstractBrowser):
PARENT = 'cmes'
login = URL('pradoepargne/fr/identification/default.cgi', LoginPage)
def __init__(self, baseurl, subsite, login, password, *args, **kwargs):
self.weboob = kwargs['weboob']
super(PradoBrowser, self).__init__(baseurl, login, password, subsite, *args, **kwargs)
......@@ -23,7 +23,7 @@ from import Module, BackendConfig
from import ValueBackendPassword
from weboob.capabilities.base import find_object
from .browser import CmesBrowser
from .browser import PradoBrowser
__all__ = ['PradoepargneModule']
......@@ -40,13 +40,13 @@ class PradoepargneModule(Module, CapBankPockets):
ValueBackendPassword('login', label='Identifiant', masked=False),
ValueBackendPassword('password', label='Mot de passe'))
BROWSER = CmesBrowser
BROWSER = PradoBrowser
def create_default_browser(self):
return self.create_browser("",
def get_account(self, _id):
# -*- coding: utf-8 -*-
# Copyright(C) 2012-2019 Budget Insight
from weboob.browser.pages import AbstractPage
class LoginPage(AbstractPage):
PARENT = 'cmes'
PARENT_URL = 'login'
BROWSER_ATTR = 'package.browser.CmesBrowser'
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