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 weboob.capabilities.bank import Transfer, TransferError
|
||||||
|
|
||||||
from .pages import LoginPage, LoginErrorPage, AccountsPage, UserSpacePage, EmptyPage, \
|
from .pages import LoginPage, LoginErrorPage, AccountsPage, UserSpacePage, EmptyPage, \
|
||||||
OperationsPage, CardPage, NoOperationsPage, InfoPage, TransfertPage
|
OperationsPage, CardPage, NoOperationsPage, InfoPage, TransfertPage, \
|
||||||
|
ChangePasswordPage
|
||||||
|
|
||||||
|
|
||||||
__all__ = ['CICBrowser']
|
__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/CR/arrivee\.asp.*': NoOperationsPage,
|
||||||
'https://www.cic.fr/.*/fr/banque/BAD.*': InfoPage,
|
'https://www.cic.fr/.*/fr/banque/BAD.*': InfoPage,
|
||||||
'https://www.cic.fr/.*/fr/banque/.*Vir.*': TransfertPage,
|
'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/': 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/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
|
currentSubBank = None
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,7 @@ from urlparse import urlparse, parse_qs
|
||||||
from decimal import Decimal
|
from decimal import Decimal
|
||||||
import re
|
import re
|
||||||
|
|
||||||
from weboob.tools.browser import BasePage
|
from weboob.tools.browser import BasePage, BrowserIncorrectPassword
|
||||||
from weboob.tools.ordereddict import OrderedDict
|
from weboob.tools.ordereddict import OrderedDict
|
||||||
from weboob.capabilities.bank import Account
|
from weboob.capabilities.bank import Account
|
||||||
from weboob.tools.capabilities.bank.transactions import FrenchTransaction
|
from weboob.tools.capabilities.bank.transactions import FrenchTransaction
|
||||||
|
|
@ -37,6 +37,10 @@ class LoginPage(BasePage):
|
||||||
class LoginErrorPage(BasePage):
|
class LoginErrorPage(BasePage):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
class ChangePasswordPage(BasePage):
|
||||||
|
def on_loaded(self):
|
||||||
|
raise BrowserIncorrectPassword('Please change your password')
|
||||||
|
|
||||||
class InfoPage(BasePage):
|
class InfoPage(BasePage):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -25,7 +25,8 @@ from weboob.tools.browser import BaseBrowser, BrowserIncorrectPassword
|
||||||
from weboob.capabilities.bank import Transfer, TransferError
|
from weboob.capabilities.bank import Transfer, TransferError
|
||||||
|
|
||||||
from .pages import LoginPage, LoginErrorPage, AccountsPage, UserSpacePage, EmptyPage, \
|
from .pages import LoginPage, LoginErrorPage, AccountsPage, UserSpacePage, EmptyPage, \
|
||||||
OperationsPage, CardPage, NoOperationsPage, InfoPage, TransfertPage
|
OperationsPage, CardPage, NoOperationsPage, InfoPage, TransfertPage, \
|
||||||
|
ChangePasswordPage
|
||||||
|
|
||||||
|
|
||||||
__all__ = ['CreditMutuelBrowser']
|
__all__ = ['CreditMutuelBrowser']
|
||||||
|
|
@ -48,10 +49,11 @@ class CreditMutuelBrowser(BaseBrowser):
|
||||||
'https://www.creditmutuel.fr/.*/fr/banque/CR/arrivee\.asp.*': NoOperationsPage,
|
'https://www.creditmutuel.fr/.*/fr/banque/CR/arrivee\.asp.*': NoOperationsPage,
|
||||||
'https://www.creditmutuel.fr/.*/fr/banque/BAD.*': InfoPage,
|
'https://www.creditmutuel.fr/.*/fr/banque/BAD.*': InfoPage,
|
||||||
'https://www.creditmutuel.fr/.*/fr/banque/.*Vir.*': TransfertPage,
|
'https://www.creditmutuel.fr/.*/fr/banque/.*Vir.*': TransfertPage,
|
||||||
|
'https://www.creditmutuel.fr/.*/fr/validation/change_password.cgi': ChangePasswordPage,
|
||||||
'https://www.creditmutuel.fr/.*/fr/': EmptyPage,
|
'https://www.creditmutuel.fr/.*/fr/': EmptyPage,
|
||||||
'https://www.creditmutuel.fr/.*/fr/banques/index.html': EmptyPage,
|
'https://www.creditmutuel.fr/.*/fr/banques/index.html': EmptyPage,
|
||||||
'https://www.creditmutuel.fr/.*/fr/banque/paci_beware_of_phishing.html.*': EmptyPage,
|
'https://www.creditmutuel.fr/.*/fr/banque/paci_beware_of_phishing.html.*': EmptyPage,
|
||||||
'https://www.creditmutuel.fr/.*/fr/validation/.*': EmptyPage,
|
'https://www.creditmutuel.fr/.*/fr/validation/(?!change_password).*': EmptyPage,
|
||||||
}
|
}
|
||||||
|
|
||||||
currentSubBank = None
|
currentSubBank = None
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,7 @@ from urlparse import urlparse, parse_qs
|
||||||
from decimal import Decimal
|
from decimal import Decimal
|
||||||
import re
|
import re
|
||||||
|
|
||||||
from weboob.tools.browser import BasePage
|
from weboob.tools.browser import BasePage, BrowserIncorrectPassword
|
||||||
from weboob.tools.ordereddict import OrderedDict
|
from weboob.tools.ordereddict import OrderedDict
|
||||||
from weboob.capabilities.bank import Account
|
from weboob.capabilities.bank import Account
|
||||||
from weboob.tools.capabilities.bank.transactions import FrenchTransaction
|
from weboob.tools.capabilities.bank.transactions import FrenchTransaction
|
||||||
|
|
@ -37,6 +37,10 @@ class LoginPage(BasePage):
|
||||||
class LoginErrorPage(BasePage):
|
class LoginErrorPage(BasePage):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
class ChangePasswordPage(BasePage):
|
||||||
|
def on_loaded(self):
|
||||||
|
raise BrowserIncorrectPassword('Please change your password')
|
||||||
|
|
||||||
class InfoPage(BasePage):
|
class InfoPage(BasePage):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue