handle LoggedPage
This commit is contained in:
parent
7708c497ab
commit
4144380dd9
3 changed files with 12 additions and 8 deletions
|
|
@ -18,7 +18,7 @@
|
||||||
|
|
||||||
from weboob.tools.browser import BaseBrowser#, BrowserIncorrectPassword
|
from weboob.tools.browser import BaseBrowser#, BrowserIncorrectPassword
|
||||||
|
|
||||||
from .pages import LoginPage, CookiePage, AccountList, AccountHistory
|
from .pages import LoginPage, LoggedPage, CookiePage, AccountList, AccountHistory
|
||||||
|
|
||||||
|
|
||||||
__all__ = ['BPbrowser']
|
__all__ = ['BPbrowser']
|
||||||
|
|
@ -29,6 +29,7 @@ class BPbrowser(BaseBrowser):
|
||||||
PROTOCOL = 'https'
|
PROTOCOL = 'https'
|
||||||
ENCODING = None # refer to the HTML encoding
|
ENCODING = None # refer to the HTML encoding
|
||||||
PAGES = { r'.*wsost/OstBrokerWeb/loginform.*': LoginPage,
|
PAGES = { r'.*wsost/OstBrokerWeb/loginform.*': LoginPage,
|
||||||
|
r'.*voscomptes/canalXHTML/identif.ea': LoggedPage,
|
||||||
r'.*voscomptes/canalXHTML/releve/syntheseAssurancesEtComptes.ea': CookiePage,
|
r'.*voscomptes/canalXHTML/releve/syntheseAssurancesEtComptes.ea': CookiePage,
|
||||||
r'.*voscomptes/canalXHTML/releve/liste_comptes.jsp': AccountList,
|
r'.*voscomptes/canalXHTML/releve/liste_comptes.jsp': AccountList,
|
||||||
r'.*canalXHTML/relevesCCP/.*': AccountHistory,
|
r'.*canalXHTML/relevesCCP/.*': AccountHistory,
|
||||||
|
|
|
||||||
|
|
@ -15,9 +15,9 @@
|
||||||
# along with this program; if not, write to the Free Software
|
# along with this program; if not, write to the Free Software
|
||||||
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
|
|
||||||
from .login import LoginPage
|
from .login import LoginPage, LoggedPage
|
||||||
from .cookie import CookiePage
|
from .cookie import CookiePage
|
||||||
from .accountlist import AccountList
|
from .accountlist import AccountList
|
||||||
from .accounthistory import AccountHistory
|
from .accounthistory import AccountHistory
|
||||||
|
|
||||||
__all__ = ['LoginPage', 'CookiePage', "AccountList", 'AccountHistory']
|
__all__ = ['LoginPage', 'LoggedPage', 'CookiePage', "AccountList", 'AccountHistory']
|
||||||
|
|
|
||||||
|
|
@ -19,8 +19,8 @@ import hashlib
|
||||||
|
|
||||||
from weboob.tools.browser import BasePage
|
from weboob.tools.browser import BasePage
|
||||||
|
|
||||||
__all__ = ['LoginPage']
|
|
||||||
|
|
||||||
|
__all__ = ['LoginPage', 'LoggedPage']
|
||||||
|
|
||||||
|
|
||||||
def md5(file):
|
def md5(file):
|
||||||
|
|
@ -50,3 +50,6 @@ class LoginPage(BasePage):
|
||||||
self.browser["password"] = Newpassword
|
self.browser["password"] = Newpassword
|
||||||
self.browser["username"] = login
|
self.browser["username"] = login
|
||||||
self.browser.submit()
|
self.browser.submit()
|
||||||
|
|
||||||
|
class LoggedPage(BasePage):
|
||||||
|
pass
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue