Skip to content
Commits on Source (3)
......@@ -25,7 +25,7 @@
class HumanisBrowser(AbstractBrowser):
PARENT = 'cmes'
login = URL('humanis/fr/identification/login.cgi', LoginPage)
login = URL('epsens/fr/identification/authentification.html', LoginPage)
def __init__(self, login, password, baseurl, subsite, *args, **kwargs):
self.weboob = kwargs['weboob']
......
......@@ -57,8 +57,10 @@ def iter_accounts(self):
@need_login
def get_history(self, account):
self.location(account._link)
return self.page.get_operations()
if account._link:
self.location(account._link)
return self.page.get_operations()
return []
@need_login
def get_profile(self):
......
......@@ -28,7 +28,7 @@
from weboob.capabilities.base import NotAvailable
from weboob.capabilities.profile import Profile
from weboob.browser.filters.standard import CleanText, CleanDecimal, Async, Regexp, Join, Field
from weboob.browser.filters.html import Attr, Link, TableCell, ColumnNotFound
from weboob.browser.filters.html import Link, TableCell, ColumnNotFound
from weboob.tools.capabilities.bank.transactions import FrenchTransaction
from weboob.tools.capabilities.bank.iban import is_iban_valid
from weboob.tools.compat import basestring
......@@ -99,7 +99,7 @@ def condition(self):
obj_balance = CleanDecimal(TableCell('balance'), replace_dots=True)
def obj__link(self):
return Attr(TableCell('id')(self)[0].xpath('./a'), 'href')(self)
return Link(TableCell('id')(self)[0].xpath('./a'), default=None)(self)
def obj__url(self):
return Link(TableCell('rib')(self)[0].xpath('./a[img[starts-with(@alt, "RIB")]]'), default=None)(self)
......