on page to update user information, raise BrowserIncorrectPassword
This commit is contained in:
parent
5b9c359487
commit
cc31e73f23
3 changed files with 9 additions and 3 deletions
|
|
@ -20,7 +20,7 @@
|
||||||
|
|
||||||
|
|
||||||
from weboob.tools.browser import BaseBrowser, BrowserIncorrectPassword
|
from weboob.tools.browser import BaseBrowser, BrowserIncorrectPassword
|
||||||
from .pages import LoginPage, AccountsList, AccountHistory
|
from .pages import LoginPage, AccountsList, AccountHistory, UpdateInfoPage
|
||||||
|
|
||||||
from datetime import date
|
from datetime import date
|
||||||
from dateutil.relativedelta import relativedelta
|
from dateutil.relativedelta import relativedelta
|
||||||
|
|
@ -38,6 +38,7 @@ class Boursorama(BaseBrowser):
|
||||||
'.*connexion.phtml.*': LoginPage,
|
'.*connexion.phtml.*': LoginPage,
|
||||||
'.*/comptes/synthese.phtml': AccountsList,
|
'.*/comptes/synthese.phtml': AccountsList,
|
||||||
'.*/mouvements.phtml.*': AccountHistory,
|
'.*/mouvements.phtml.*': AccountHistory,
|
||||||
|
'.*/date_anniversaire.phtml.*': UpdateInfoPage,
|
||||||
}
|
}
|
||||||
|
|
||||||
def __init__(self, *args, **kwargs):
|
def __init__(self, *args, **kwargs):
|
||||||
|
|
|
||||||
|
|
@ -21,7 +21,7 @@
|
||||||
|
|
||||||
from .account_history import AccountHistory
|
from .account_history import AccountHistory
|
||||||
from .accounts_list import AccountsList
|
from .accounts_list import AccountsList
|
||||||
from .login import LoginPage
|
from .login import LoginPage, UpdateInfoPage
|
||||||
|
|
||||||
class AccountPrelevement(AccountsList):
|
class AccountPrelevement(AccountsList):
|
||||||
pass
|
pass
|
||||||
|
|
@ -29,4 +29,5 @@ class AccountPrelevement(AccountsList):
|
||||||
__all__ = ['LoginPage',
|
__all__ = ['LoginPage',
|
||||||
'AccountsList',
|
'AccountsList',
|
||||||
'AccountHistory',
|
'AccountHistory',
|
||||||
|
'UpdateInfoPage',
|
||||||
]
|
]
|
||||||
|
|
|
||||||
|
|
@ -23,7 +23,7 @@ import hashlib
|
||||||
import urllib
|
import urllib
|
||||||
import tempfile
|
import tempfile
|
||||||
|
|
||||||
from weboob.tools.browser import BasePage
|
from weboob.tools.browser import BasePage, BrowserIncorrectPassword
|
||||||
from weboob.tools.captcha.virtkeyboard import MappedVirtKeyboard
|
from weboob.tools.captcha.virtkeyboard import MappedVirtKeyboard
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -100,3 +100,7 @@ class LoginPage(BasePage):
|
||||||
}
|
}
|
||||||
|
|
||||||
self.browser.location(form.attrib['action'], urllib.urlencode(args), no_login=True)
|
self.browser.location(form.attrib['action'], urllib.urlencode(args), no_login=True)
|
||||||
|
|
||||||
|
class UpdateInfoPage(BasePage):
|
||||||
|
def on_loaded(self):
|
||||||
|
raise BrowserIncorrectPassword('Please update your user informations')
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue