From 1a1412044a00a5ce2e6be8b4d59eda71cc70399a Mon Sep 17 00:00:00 2001 From: Romain Bignon Date: Wed, 23 May 2012 10:16:01 +0200 Subject: [PATCH] changes on website ('execution' field renamed to '_flowExecutionKey') --- modules/bnporc/browser.py | 6 +++--- modules/bnporc/pages/accounts_list.py | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/bnporc/browser.py b/modules/bnporc/browser.py index 6b320d47..27fbc688 100644 --- a/modules/bnporc/browser.py +++ b/modules/bnporc/browser.py @@ -164,11 +164,11 @@ class BNPorc(BaseBrowser): self.location('https://www.secure.bnpparibas.net/banque/portail/particulier/FicheA', urllib.urlencode(data)) - execution = self.page.document.xpath('//form[@name="displayStatementForm"]/input[@name="execution"]')[0].attrib['value'] + execution = self.page.document.xpath('//form[@name="displayStatementForm"]/input[@name="_flowExecutionKey"]')[0].attrib['value'] data = {'_eventId': 'changeOperationsPerPage', 'categoryId': '', 'contractId': '', - 'execution': execution, + '_flowExecutionKey': execution, 'groupId': '', 'listCheckedOp': '', 'myPage': 1, @@ -187,7 +187,7 @@ class BNPorc(BaseBrowser): if not self.is_on_page(AccountsList): self.location('/NSFR?Action=DSP_VGLOBALE') execution = self.page.get_execution_id() - self.location('/banque/portail/particulier/FicheA?externalIAId=IAStatements&contractId=%d&pastOrPendingOperations=2&pageId=mouvementsavenir&execution=%s' % (int(id), execution)) + self.location('/banque/portail/particulier/FicheA?externalIAId=IAStatements&contractId=%d&pastOrPendingOperations=2&pageId=mouvementsavenir&_flowExecutionKey=%s' % (int(id), execution)) return self.page.iter_operations() @check_expired_password diff --git a/modules/bnporc/pages/accounts_list.py b/modules/bnporc/pages/accounts_list.py index 3244e2c9..5f664b1a 100644 --- a/modules/bnporc/pages/accounts_list.py +++ b/modules/bnporc/pages/accounts_list.py @@ -95,7 +95,7 @@ class AccountsList(BasePage): return l def get_execution_id(self): - return self.document.xpath('//input[@name="execution"]')[0].attrib['value'] + return self.document.xpath('//input[@name="_flowExecutionKey"]')[0].attrib['value'] def get_messages_link(self): """