Rename BasePage to Page
This commit is contained in:
parent
44dffce7b2
commit
444d36eee8
146 changed files with 525 additions and 525 deletions
|
|
@ -23,16 +23,16 @@ from dateutil.parser import parse as parse_date
|
|||
|
||||
from weboob.capabilities.parcel import Parcel, Event
|
||||
from weboob.capabilities import NotAvailable
|
||||
from weboob.tools.browser import BasePage
|
||||
from weboob.tools.browser import Page
|
||||
|
||||
|
||||
class IndexPage(BasePage):
|
||||
class IndexPage(Page):
|
||||
def track_package(self, _id):
|
||||
self.browser.select_form(predicate=lambda form: form.attrs.get('id', '') == 'suivreEnvoi')
|
||||
self.browser['chronoNumbers'] = _id.encode('utf-8')
|
||||
self.browser.submit()
|
||||
|
||||
class TrackPage(BasePage):
|
||||
class TrackPage(Page):
|
||||
def get_info(self, id):
|
||||
if len(self.document.xpath('//libelle[@nom="MSG_AUCUN_EVT"]')) > 0:
|
||||
return None
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue