rename BasePage.loaded() to on_loaded()
This commit is contained in:
parent
3b312923ea
commit
42de7aa5a3
16 changed files with 18 additions and 18 deletions
|
|
@ -32,7 +32,7 @@ class IndexPage(DLFPPage):
|
|||
pass
|
||||
|
||||
class LoginPage(DLFPPage):
|
||||
def loaded(self):
|
||||
def on_loaded(self):
|
||||
if self.has_error():
|
||||
raise BrowserIncorrectPassword()
|
||||
|
||||
|
|
|
|||
|
|
@ -103,7 +103,7 @@ class Article(object):
|
|||
self.part2 = self.browser.tostring(div)
|
||||
|
||||
class ContentPage(DLFPPage):
|
||||
def loaded(self):
|
||||
def on_loaded(self):
|
||||
self.article = None
|
||||
for div in self.document.find('body').find('div').findall('div'):
|
||||
self.parse_div(div)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue