fix compatibility with Decimal of python2.6 (closes #1685)
This commit is contained in:
parent
e54d1391d7
commit
91c5bc3661
1 changed files with 2 additions and 2 deletions
|
|
@ -70,7 +70,7 @@ class BredBrowser(DomainBrowser):
|
|||
|
||||
if poste['postePortefeuille']:
|
||||
a.label = u'Portefeuille Titres'
|
||||
a.balance = Decimal(poste['montantTitres']['valeur'])
|
||||
a.balance = Decimal(str(poste['montantTitres']['valeur']))
|
||||
a.currency = poste['montantTitres']['monnaie']['code']
|
||||
yield a
|
||||
|
||||
|
|
@ -78,7 +78,7 @@ class BredBrowser(DomainBrowser):
|
|||
continue
|
||||
|
||||
a.label = ' '.join([content['intitule'].strip(), poste['libelle'].strip()])
|
||||
a.balance = Decimal(poste['solde']['valeur'])
|
||||
a.balance = Decimal(str(poste['solde']['valeur']))
|
||||
a.currency = poste['solde']['monnaie']['code']
|
||||
yield a
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue