change currencies integer constants to ISO code strings
This commit is contained in:
parent
407774937d
commit
6099560b8c
11 changed files with 24 additions and 39 deletions
|
|
@ -23,7 +23,6 @@ from datetime import date, timedelta
|
|||
import re
|
||||
import hashlib
|
||||
|
||||
from weboob.capabilities.base import Currency
|
||||
from weboob.capabilities.bank import Account, Transaction
|
||||
from weboob.capabilities.base import NotAvailable
|
||||
from weboob.tools.browser import BasePage
|
||||
|
|
@ -59,7 +58,7 @@ class AccountsList(BasePage):
|
|||
# TODO: no idea abount how proxy account are displayed
|
||||
for a in self.document.xpath('//a[@class="mainclic"]'):
|
||||
account = Account()
|
||||
account.currency = Currency.CUR_EUR
|
||||
account.currency = 'EUR'
|
||||
account.id = unicode(a.find('span[@class="account-number"]').text)
|
||||
account._id = account.id
|
||||
account.label = unicode(a.find('span[@class="title"]').text)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue