Set replace_dots everywhere

The goal is to change the default value in CleanDecimal
This commit is contained in:
Florent 2014-08-21 10:21:53 +02:00
commit a434f33a61
10 changed files with 16 additions and 17 deletions

View file

@ -127,7 +127,7 @@ class AccountsList(LoggedPage, HTMLPage):
obj_label = CleanText('span[@class="title"]')
obj_id = AddPref(Field('_id'), Field('label'))
obj_type = AddType(Field('label'))
obj_balance = CleanDecimal('span[@class="solde"]/label')
obj_balance = CleanDecimal('span[@class="solde"]/label', replace_dots=True)
obj_coming = NotAvailable
obj__jid = Attr('//input[@name="javax.faces.ViewState"]', 'value')
@ -141,7 +141,7 @@ class AccountsList(LoggedPage, HTMLPage):
obj_id = None # will be overwrited by the browser
# we use lower for compatibility with the old website
obj_raw = Transaction.Raw(Lower('.//td[@class="lbl"]'))
obj_amount = CleanDecimal('.//td[starts-with(@class, "amount")]')
obj_amount = CleanDecimal('.//td[starts-with(@class, "amount")]', replace_dots=True)
obj_date = INGDate(CleanText('.//td[@class="date"]'), dayfirst=True)
obj_rdate = Field('date')
obj__hash = PreHashmd5(Field('date'), Field('raw'), Field('amount'))

View file

@ -70,4 +70,4 @@ class TitreHistory(HTMLPage):
obj_raw = Transaction.Raw('td[4] | td[3]/a')
obj_date = Date(CleanText('td[2]'), dayfirst=True)
obj_amount = CleanDecimal('td[7]')
obj_amount = CleanDecimal('td[7]', replace_dots=True)

View file

@ -144,7 +144,7 @@ class TransferConfirmPage(HTMLPage):
class item(ItemElement):
klass = Transfer
obj_amount = CleanDecimal('.//label[@id="confirmtransferAmount"]')
obj_amount = CleanDecimal('.//label[@id="confirmtransferAmount"]', replace_dots=True)
obj_origin = CleanText('.//span[@id="confirmfromAccount"]')
obj_recipient = CleanText('.//span[@id="confirmtoAccount"]')
obj_reason = CleanText('.//span[@id="confirmtransferMotive"]')