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

@ -32,11 +32,11 @@ import urllib
import io
from weboob.capabilities.base import UserError
from weboob.tools.browser import BasePage, BrokenPageError, BrowserIncorrectPassword
from weboob.tools.browser import Page, BrokenPageError, BrowserIncorrectPassword
from weboob.tools.json import json
class LoginPage(BasePage):
class LoginPage(Page):
def on_loaded(self):
errors = []
for errdiv in self.parser.select(self.document.getroot(), 'div.errormsg'):
@ -52,7 +52,7 @@ class LoginPage(BasePage):
self.browser.submit()
class LoginRedirectPage(BasePage):
class LoginRedirectPage(Page):
pass
@ -60,7 +60,7 @@ class ForbiddenVideo(UserError):
pass
class BaseYoutubePage(BasePage):
class BaseYoutubePage(Page):
def is_logged(self):
try:
self.parser.select(self.document.getroot(), 'span#yt-masthead-account-picker', 1)
@ -179,7 +179,7 @@ class VideoPage(BaseYoutubePage):
}
def __init__(self, *args, **kwargs):
BasePage.__init__(self, *args, **kwargs)
Page.__init__(self, *args, **kwargs)
self._player_cache = {}
def _extract_signature_function(self, video_id, player_url, slen):