changes on website ('execution' field renamed to '_flowExecutionKey')

This commit is contained in:
Romain Bignon 2012-05-23 10:16:01 +02:00 committed by Romain Bignon
commit 1a1412044a
2 changed files with 4 additions and 4 deletions

View file

@ -164,11 +164,11 @@ class BNPorc(BaseBrowser):
self.location('https://www.secure.bnpparibas.net/banque/portail/particulier/FicheA', urllib.urlencode(data)) 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', data = {'_eventId': 'changeOperationsPerPage',
'categoryId': '', 'categoryId': '',
'contractId': '', 'contractId': '',
'execution': execution, '_flowExecutionKey': execution,
'groupId': '', 'groupId': '',
'listCheckedOp': '', 'listCheckedOp': '',
'myPage': 1, 'myPage': 1,
@ -187,7 +187,7 @@ class BNPorc(BaseBrowser):
if not self.is_on_page(AccountsList): if not self.is_on_page(AccountsList):
self.location('/NSFR?Action=DSP_VGLOBALE') self.location('/NSFR?Action=DSP_VGLOBALE')
execution = self.page.get_execution_id() 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() return self.page.iter_operations()
@check_expired_password @check_expired_password

View file

@ -95,7 +95,7 @@ class AccountsList(BasePage):
return l return l
def get_execution_id(self): 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): def get_messages_link(self):
""" """