translate abstract methods to new API

This commit is contained in:
Romain Bignon 2010-04-16 18:45:08 +02:00
commit d61d26dda9
2 changed files with 2 additions and 2 deletions

View file

@ -22,7 +22,7 @@ import ClientForm
from weboob.tools.browser import BasePage
class PornPage(BasePage):
def loaded(self):
def on_loaded(self):
try:
self.browser.select_form(nr=0)
self.browser.submit(name='user_choice')

View file

@ -28,7 +28,7 @@ from weboob.capabilities.video import Video
class VideoPage(PornPage):
URL_REGEXP = re.compile("https?://[w\.]*youporn.com/watch/(\d+)/?.*")
def loaded(self):
def on_loaded(self):
if not PornPage.loaded(self):
return