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

@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-
from weboob.tools.browser import BasePage
from weboob.tools.browser import Page
class IndexPage(BasePage):
class IndexPage(Page):
pass

View file

@ -4,12 +4,12 @@ from datetime import datetime, timedelta
from urlparse import urlparse, parse_qs
from weboob.tools.misc import get_bytes_size
from weboob.tools.browser import BasePage,BrokenPageError
from weboob.tools.browser import Page,BrokenPageError
from weboob.capabilities.torrent import Torrent, MagnetOnly
from weboob.capabilities.base import NotAvailable
class TorrentsPage(BasePage):
class TorrentsPage(Page):
def iter_torrents(self):
try:
@ -50,7 +50,7 @@ class TorrentsPage(BasePage):
torrent.date = date
yield torrent
class TorrentPage(BasePage):
class TorrentPage(Page):
def get_torrent(self, id):
trs = self.document.getroot().cssselect('table.torrent_info_tbl tr')