Rename BasePage to Page

This commit is contained in:
Florent 2014-09-23 10:50:25 +02:00
commit 444d36eee8
146 changed files with 525 additions and 525 deletions

View file

@ -24,7 +24,7 @@ import re
from time import sleep
from weboob.capabilities.bank import Account
from weboob.tools.browser import BasePage, BrowserIncorrectPassword
from weboob.tools.browser import Page, BrowserIncorrectPassword
from weboob.capabilities import NotAvailable
from weboob.tools.capabilities.bank.transactions import FrenchTransaction
from weboob.tools.json import json
@ -50,7 +50,7 @@ class Transaction(FrenchTransaction):
]
class AccountHistoryPage(BasePage):
class AccountHistoryPage(Page):
def get_operations(self, _id):
"""history, see http://docs.weboob.org/api/capabilities/bank.html?highlight=transaction#weboob.capabilities.bank.Transaction"""
@ -83,7 +83,7 @@ class AccountHistoryPage(BasePage):
yield operation
class AccountsList(BasePage):
class AccountsList(Page):
def on_loaded(self):
warn = self.document.xpath('//div[@id="message_renouvellement_mot_passe"]')
if len(warn) > 0:
@ -157,7 +157,7 @@ class AccountsList(BasePage):
yield account
class GlobalAccountsList(BasePage):
class GlobalAccountsList(Page):
pass
# vim:ts=4:sw=4

View file

@ -20,10 +20,10 @@
#from logging import error
from weboob.tools.browser import BasePage, BrowserUnavailable
from weboob.tools.browser import Page, BrowserUnavailable
class LoginPage(BasePage):
class LoginPage(Page):
def login(self, login, passwd):
msgb = self.document.xpath(".//*[@id='message_client']/text()")
msga = ''.join(msgb)