[aum] aibility to post answers

This commit is contained in:
Romain Bignon 2010-04-11 12:03:59 +02:00
commit 637875c49a
4 changed files with 24 additions and 8 deletions

View file

@ -197,12 +197,14 @@ class AdopteUnMec(Browser):
@pageaccess
def get_thread_mails(self, id):
self.page.open_thread_page(id)
if not self.is_on_page(ContactThreadPage) or self.page.get_id() != int(id):
self.page.open_thread_page(id)
return self.page.get_mails()
@pageaccess
def post_mail(self, id, content):
self.page.open_thread_page(id)
if not self.is_on_page(ContactThreadPage) or self.page.get_id() != int(id):
self.page.open_thread_page(id)
self.page.post(content)
@pageaccess