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

@ -22,11 +22,11 @@ from urlparse import parse_qs, urlsplit
from weboob.capabilities.torrent import Torrent
from weboob.capabilities.base import NotAvailable, NotLoaded
from weboob.tools.browser import BasePage
from weboob.tools.browser import Page
from weboob.tools.misc import get_bytes_size
class TorrentsPage(BasePage):
class TorrentsPage(Page):
def iter_torrents(self):
for tr in self.document.getiterator('tr'):
if tr.attrib.get('class', '') == 'odd' or tr.attrib.get('class', '') == ' even':
@ -70,7 +70,7 @@ class TorrentsPage(BasePage):
yield torrent
class TorrentPage(BasePage):
class TorrentPage(Page):
def get_torrent(self, id):
seed = 0
leech = 0