Commit ea249aa7 authored by Sylvie Ye's avatar Sylvie Ye Committed by Romain Bignon

[bp] handle another transfer date regexp

Closes: 17282@sibi
parent 4efb74c8
...@@ -179,7 +179,20 @@ class TransferSummary(LoggedPage, CheckTransferError): ...@@ -179,7 +179,20 @@ class TransferSummary(LoggedPage, CheckTransferError):
# TODO handle transfer with sms code. # TODO handle transfer with sms code.
if u'veuillez saisir votre code de validation' in CleanText('//div[@class="bloc Tmargin"]')(self.doc): if u'veuillez saisir votre code de validation' in CleanText('//div[@class="bloc Tmargin"]')(self.doc):
raise NotImplementedError() raise NotImplementedError()
transfer.exec_date = Date(Regexp(CleanText('//div[@class="bloc Tmargin"]'), 'suivant \(([\d\/]+)\)'), dayfirst=True)(self.doc)
transfer_date = Date(Regexp(
CleanText('//div[@class="bloc Tmargin"]'),
r'suivant \(([\d\/]+)\)',
default=NotAvailable
), dayfirst=True, default=NotAvailable)(self.doc)
if transfer_date:
transfer.exec_date = transfer_date
else:
transfer.exec_date = Date(Regexp(
CleanText('//div[@class="bloc Tmargin"]'),
r'Date ([\d\/]+)'
), dayfirst=True)(self.doc)
return transfer return transfer
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment