support wher forced to go on change_password page
This commit is contained in:
parent
1515205a8e
commit
b052e4aa53
4 changed files with 19 additions and 6 deletions
|
|
@ -25,7 +25,8 @@ from weboob.tools.browser import BaseBrowser, BrowserIncorrectPassword
|
|||
from weboob.capabilities.bank import Transfer, TransferError
|
||||
|
||||
from .pages import LoginPage, LoginErrorPage, AccountsPage, UserSpacePage, EmptyPage, \
|
||||
OperationsPage, CardPage, NoOperationsPage, InfoPage, TransfertPage
|
||||
OperationsPage, CardPage, NoOperationsPage, InfoPage, TransfertPage, \
|
||||
ChangePasswordPage
|
||||
|
||||
|
||||
__all__ = ['CICBrowser']
|
||||
|
|
@ -48,9 +49,11 @@ class CICBrowser(BaseBrowser):
|
|||
'https://www.cic.fr/.*/fr/banque/CR/arrivee\.asp.*': NoOperationsPage,
|
||||
'https://www.cic.fr/.*/fr/banque/BAD.*': InfoPage,
|
||||
'https://www.cic.fr/.*/fr/banque/.*Vir.*': TransfertPage,
|
||||
'https://www.cic.fr/.*/fr/validation/change_password.cgi': ChangePasswordPage,
|
||||
'https://www.cic.fr/.*/fr/': EmptyPage,
|
||||
'https://www.cic.fr/.*/fr/banques/index.html': EmptyPage,
|
||||
'https://www.cic.fr/.*/fr/banque/paci_beware_of_phishing.html.*': EmptyPage,
|
||||
'https://www.cic.fr/.*/fr/validation/.*': EmptyPage,
|
||||
'https://www.cic.fr/.*/fr/validation/(?!change_password).*': EmptyPage,
|
||||
}
|
||||
|
||||
currentSubBank = None
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ from urlparse import urlparse, parse_qs
|
|||
from decimal import Decimal
|
||||
import re
|
||||
|
||||
from weboob.tools.browser import BasePage
|
||||
from weboob.tools.browser import BasePage, BrowserIncorrectPassword
|
||||
from weboob.tools.ordereddict import OrderedDict
|
||||
from weboob.capabilities.bank import Account
|
||||
from weboob.tools.capabilities.bank.transactions import FrenchTransaction
|
||||
|
|
@ -37,6 +37,10 @@ class LoginPage(BasePage):
|
|||
class LoginErrorPage(BasePage):
|
||||
pass
|
||||
|
||||
class ChangePasswordPage(BasePage):
|
||||
def on_loaded(self):
|
||||
raise BrowserIncorrectPassword('Please change your password')
|
||||
|
||||
class InfoPage(BasePage):
|
||||
pass
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue