Commit e65935c8 authored by ntome's avatar ntome Committed by ntome

[amelipro] harsh python3 port + cosmetics

parent 460a5e55
......@@ -26,6 +26,7 @@ from .pages import LoginPage, HomePage, AccountPage, HistoryPage, BillsPage, Sea
__all__ = ['AmeliProBrowser']
class AmeliProBrowser(LoginBrowser):
BASEURL = 'https://espacepro.ameli.fr'
......@@ -63,7 +64,6 @@ class AmeliProBrowser(LoginBrowser):
@need_login
def get_subscription(self, id):
assert isinstance(id, basestring)
return self.get_subscription_list()
@need_login
......@@ -101,7 +101,6 @@ class AmeliProBrowser(LoginBrowser):
@need_login
def get_document(self, id):
assert isinstance(id, basestring)
for b in self.iter_documents():
if id == b.id:
return b
......
......@@ -21,8 +21,10 @@
from datetime import datetime
import re
from decimal import Decimal
from weboob.browser.pages import HTMLPage
from weboob.capabilities.bill import DocumentTypes, Subscription, Detail, Bill
from weboob.tools.compat import unicode
# Ugly array to avoid the use of french locale
......@@ -36,14 +38,17 @@ class LoginPage(HTMLPage):
form['vp_connexion_portlet_1password'] = password.encode('utf8')
form.submit()
class HomePage(HTMLPage):
def on_loaded(self):
pass
class SearchPage(HTMLPage):
def on_loaded(self):
pass
class AccountPage(HTMLPage):
def iter_subscription_list(self):
ident = self.doc.xpath('//div[@id="identification"]')[0]
......
......@@ -9,6 +9,7 @@ agendadulibre
allrecipes
amazon
ameli
amelipro
americanexpress
anticaptcha
amundi
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment