Handle card history
Signed-off-by: Raphaël Rigo <devel-git@syscall.eu> Signed-off-by: Romain Bignon <romain@symlink.me>
This commit is contained in:
parent
5cc41a78b7
commit
31af964696
3 changed files with 16 additions and 3 deletions
|
|
@ -20,6 +20,7 @@
|
|||
|
||||
|
||||
from .account_history import AccountHistory
|
||||
from .card_history import CardHistory
|
||||
from .accounts_list import AccountsList
|
||||
from .login import LoginPage, UpdateInfoPage
|
||||
|
||||
|
|
@ -31,6 +32,7 @@ class AccountPrelevement(AccountsList):
|
|||
__all__ = ['LoginPage',
|
||||
'AccountsList',
|
||||
'AccountHistory',
|
||||
'CardHistory',
|
||||
'UpdateInfoPage',
|
||||
'AuthenticationPage',
|
||||
]
|
||||
|
|
|
|||
|
|
@ -39,7 +39,17 @@ class AccountsList(BasePage):
|
|||
account._link_id = None
|
||||
for td in tr.getiterator('td'):
|
||||
if td.attrib.get('class', '') == 'account-cb':
|
||||
break
|
||||
try:
|
||||
a = td.xpath('./*/a[@class="gras"]')[0]
|
||||
except IndexError:
|
||||
# ignore account
|
||||
break
|
||||
account.type = Account.TYPE_CARD
|
||||
account.label = self.parser.tocleanstring(a)
|
||||
try:
|
||||
account._link_id = td.xpath('.//a')[0].attrib['href']
|
||||
except KeyError:
|
||||
pass
|
||||
|
||||
elif td.attrib.get('class', '') == 'account-name':
|
||||
try:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue