ability to see all messages of a thread
This commit is contained in:
parent
25b31f312b
commit
8deb9da047
2 changed files with 6 additions and 3 deletions
|
|
@ -65,7 +65,7 @@ class AdopteUnMec(BaseBrowser):
|
|||
'http://www.adopteunmec.com/shop2c.php': ShopPage,
|
||||
'http://www.adopteunmec.com/mails.php': ContactListPage,
|
||||
'http://www.adopteunmec.com/mails.php\?type=1': BasketsPage,
|
||||
'http://www.adopteunmec.com/thread.php\?id=([0-9]+)': ContactThreadPage,
|
||||
'http://www.adopteunmec.com/thread.php\?id=([0-9]+)(&see=all)?': ContactThreadPage,
|
||||
'http://www.adopteunmec.com/edit.php\?type=1': EditPhotoPage,
|
||||
'http://s\d+.adopteunmec.com/upload\d.php\?.*': EditPhotoCbPage,
|
||||
'http://www.adopteunmec.com/edit.php\?type=2': EditAnnouncePage,
|
||||
|
|
|
|||
|
|
@ -33,8 +33,11 @@ class PageBase(BasePage):
|
|||
def open_contact_list_page(self):
|
||||
self.browser.follow_link(url_regex=r"/mails.php$")
|
||||
|
||||
def open_thread_page(self, id):
|
||||
self.browser.location('/thread.php?id=%d' % int(id))
|
||||
def open_thread_page(self, id, all_messages=False):
|
||||
if all_messages:
|
||||
self.browser.location('/thread.php?id=%d&see=all' % int(id))
|
||||
else:
|
||||
self.browser.location('/thread.php?id=%d' % int(id))
|
||||
|
||||
def score(self):
|
||||
"""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue