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 @@
from .accounts_list import AccountsList
from .account_history import AccountHistory
from .login import LoginPage, LoginPage2, StopPage
from .login import LoginPage, StopPage
from .transfer import TransferPage, TransferConfirmPage
from .bills import BillsPage
@ -29,6 +29,5 @@ class AccountPrelevement(AccountsList):
pass
__all__ = ['AccountsList', 'AccountHistory', 'LoginPage',
'LoginPage2', 'AccountPrelevement',
'TransferPage', 'TransferConfirmPage',
'AccountPrelevement', 'TransferPage', 'TransferConfirmPage',
'BillsPage', 'StopPage']

View file

@ -26,7 +26,7 @@ from weboob.tools.captcha.virtkeyboard import VirtKeyboard, VirtKeyboardError
import tempfile
__all__ = ['LoginPage', 'LoginPage2', 'INGVirtKeyboard', 'StopPage']
__all__ = ['LoginPage', 'INGVirtKeyboard', 'StopPage']
class INGVirtKeyboard(VirtKeyboard):
@ -108,10 +108,6 @@ class LoginPage(BasePage):
return err is not None
class LoginPage2(BasePage):
def on_loaded(self):
pass
def login(self, password):
# 2) And now, the virtual Keyboard
try: