Rename BasePage to Page
This commit is contained in:
parent
44dffce7b2
commit
444d36eee8
146 changed files with 525 additions and 525 deletions
|
|
@ -22,7 +22,7 @@
|
|||
from urlparse import urlparse
|
||||
import re
|
||||
|
||||
from weboob.tools.browser import BasePage
|
||||
from weboob.tools.browser import Page
|
||||
from weboob.tools.capabilities.bank.transactions import FrenchTransaction
|
||||
|
||||
|
||||
|
|
@ -40,7 +40,7 @@ class Transaction(FrenchTransaction):
|
|||
]
|
||||
|
||||
|
||||
class AccountHistory(BasePage):
|
||||
class AccountHistory(Page):
|
||||
def get_operations(self):
|
||||
for form in self.document.xpath('//form[@name="marques"]'):
|
||||
for tr in form.xpath('.//tbody/tr'):
|
||||
|
|
|
|||
|
|
@ -22,11 +22,11 @@
|
|||
from decimal import Decimal
|
||||
|
||||
from weboob.capabilities.bank import Account
|
||||
from weboob.tools.browser import BasePage
|
||||
from weboob.tools.browser import Page
|
||||
from weboob.tools.capabilities.bank.transactions import FrenchTransaction
|
||||
|
||||
|
||||
class AccountsList(BasePage):
|
||||
class AccountsList(Page):
|
||||
def on_loaded(self):
|
||||
pass
|
||||
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@
|
|||
|
||||
import re
|
||||
|
||||
from weboob.tools.browser import BasePage
|
||||
from weboob.tools.browser import Page
|
||||
from weboob.tools.capabilities.bank.transactions import FrenchTransaction
|
||||
|
||||
|
||||
|
|
@ -33,7 +33,7 @@ class Transaction(FrenchTransaction):
|
|||
]
|
||||
|
||||
|
||||
class CardHistory(BasePage):
|
||||
class CardHistory(Page):
|
||||
def get_operations(self):
|
||||
for form in self.document.xpath('//form[@name="marques"]'):
|
||||
for tr in form.xpath('.//tbody/tr'):
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ import re
|
|||
import hashlib
|
||||
import urllib
|
||||
|
||||
from weboob.tools.browser import BasePage, BrowserIncorrectPassword
|
||||
from weboob.tools.browser import Page, BrowserIncorrectPassword
|
||||
from weboob.tools.captcha.virtkeyboard import MappedVirtKeyboard
|
||||
|
||||
|
||||
|
|
@ -73,7 +73,7 @@ class VirtKeyboard(MappedVirtKeyboard):
|
|||
return hashlib.md5(s).hexdigest()
|
||||
|
||||
|
||||
class LoginPage(BasePage):
|
||||
class LoginPage(Page):
|
||||
def on_loaded(self):
|
||||
pass
|
||||
# for td in self.document.getroot().cssselect('td.LibelleErreur'):
|
||||
|
|
@ -97,6 +97,6 @@ class LoginPage(BasePage):
|
|||
self.browser.location(form.attrib['action'], urllib.urlencode(args), no_login=True)
|
||||
|
||||
|
||||
class UpdateInfoPage(BasePage):
|
||||
class UpdateInfoPage(Page):
|
||||
def on_loaded(self):
|
||||
raise BrowserIncorrectPassword('Please update your login credentials')
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@
|
|||
# along with weboob. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
|
||||
from weboob.tools.browser import BasePage, BrowserIncorrectPassword
|
||||
from weboob.tools.browser import Page, BrowserIncorrectPassword
|
||||
import urllib2
|
||||
import re
|
||||
|
||||
|
|
@ -27,7 +27,7 @@ class BrowserAuthenticationCodeMaxLimit(BrowserIncorrectPassword):
|
|||
pass
|
||||
|
||||
|
||||
class AuthenticationPage(BasePage):
|
||||
class AuthenticationPage(Page):
|
||||
MAX_LIMIT = "vous avez atteint le nombre maximum "\
|
||||
"d'utilisation de l'authentification forte."
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue