merge LoginPage and Login2Page to prevent problems when the website fails with 500

This commit is contained in:
Romain Bignon 2013-02-10 18:54:30 +01:00
commit 2ef5791cf8
3 changed files with 5 additions and 11 deletions

View file

@ -20,7 +20,7 @@ import hashlib
from weboob.tools.browser import BaseBrowser, BrowserIncorrectPassword
from weboob.capabilities.bank import Account, TransferError
from .pages import AccountsList, LoginPage, LoginPage2, \
from .pages import AccountsList, LoginPage, \
AccountHistory, TransferPage, TransferConfirmPage, \
BillsPage, StopPage
@ -35,8 +35,7 @@ class Ing(BaseBrowser):
#DEBUG_HTTP = True
ENCODING = None # refer to the HTML encoding
PAGES = {'.*displayTRAccountSummary.*': AccountsList,
'.*displayLogin.jsf': LoginPage,
'.*displayLogin.jsf.+': LoginPage2,
'.*displayLogin.jsf.*': LoginPage,
'.*accountDetail.jsf.*': AccountHistory,
'.*displayTRHistorique.*': AccountHistory,
'.*transferManagement.jsf': TransferPage,