Rename BasePage to Page
This commit is contained in:
parent
44dffce7b2
commit
444d36eee8
146 changed files with 525 additions and 525 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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')
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue