ovs: implement ICapContact.get_contact
This commit is contained in:
parent
4ee3460b01
commit
e3d440d359
4 changed files with 77 additions and 12 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue