ovs: implement ICapContact.get_contact

This commit is contained in:
Vincent A 2013-11-11 15:32:10 +01:00 committed by Florent
commit e3d440d359
4 changed files with 77 additions and 12 deletions

View file

@ -63,6 +63,7 @@ class OvsBrowser(BaseBrowser):
kw['parser'] = SoupParser()
BaseBrowser.__init__(self, username, password, *a, **kw)
self.city = city
def iter_threads_list(self):
self.location('/vue_messages_recus.php')
@ -103,6 +104,11 @@ class OvsBrowser(BaseBrowser):
assert self.is_on_page(PageUserProfile)
self.page.create_thread(recipient, subject, body)
def get_contact(self, id):
self.location('/profil_read.php?%s' % id.encode(self.ENCODING)) # FIXME
assert self.is_on_page(PageUserProfile)
return self.page.get_contact()
def get_french_cities(self):
self.location('http://www.onvasortir.com')
assert self.is_on_page(PageCityList)