fix parameters on request to get professionnal accounts history

This commit is contained in:
Romain Bignon 2013-11-26 11:35:18 +01:00
commit 20c9f84974

View file

@ -127,7 +127,7 @@ class ProAccountsPage(AccountsPage):
COL_ID = 0
COL_BALANCE = 1
ARGS = ['Banque', 'Agence', 'classement', 'Serie', 'SSCompte', 'Devise', 'CodeDeviseCCB', 'LibelleCompte', 'IntituleCompte', 'Indiceclassement', 'IndiceCompte', 'NomClassement']
ARGS = ['Banque', 'Agence', 'Classement', 'Serie', 'SSCompte', 'Devise', 'CodeDeviseCCB', 'LibelleCompte', 'IntituleCompte', 'Indiceclassement', 'IndiceCompte', 'NomClassement']
def params_from_js(self, text):
l = []
@ -137,10 +137,15 @@ class ProAccountsPage(AccountsPage):
kind = self.group_dict['kind']
url = '/vos-comptes/IPT/appmanager/transac/' + kind + '?_nfpb=true&_windowLabel=portletInstance_18&_pageLabel=page_synthese_v1' + '&_cdnCltUrl=' + "/transacClippe/" + quote(l.pop(0))
args = {}
for input in self.document.xpath('//form[@name="detail"]/input'):
args[input.attrib['name']] = input.attrib.get('value', '')
for i, key in enumerate(self.ARGS):
args[key] = unicode(l[self.ARGS.index(key)]).encode(self.browser.ENCODING)
args['PageDemandee'] = 1
args['PagePrecedente'] = 1
return url, args
def get_list(self):