Fix encoding warnings
This commit is contained in:
parent
715b7bcd62
commit
8862811566
2 changed files with 4 additions and 4 deletions
|
|
@ -176,7 +176,7 @@ class HistoryPage(BasePage):
|
||||||
link = li.xpath('a')[0]
|
link = li.xpath('a')[0]
|
||||||
bill = Bill()
|
bill = Bill()
|
||||||
bill._url = link.attrib['href']
|
bill._url = link.attrib['href']
|
||||||
bill.label = link.text
|
bill.label = unicode(link.text)
|
||||||
bill.format = u"pdf"
|
bill.format = u"pdf"
|
||||||
bill.id = parentid + bill.label.replace(' ', '')
|
bill.id = parentid + bill.label.replace(' ', '')
|
||||||
yield bill
|
yield bill
|
||||||
|
|
|
||||||
|
|
@ -34,8 +34,8 @@ class LoginPage(BasePage):
|
||||||
self.browser.set_all_readonly(False)
|
self.browser.set_all_readonly(False)
|
||||||
self.browser.controls.append(ClientForm.TextControl('text', '__ASYNCPOST', {'value': "true"}))
|
self.browser.controls.append(ClientForm.TextControl('text', '__ASYNCPOST', {'value': "true"}))
|
||||||
self.browser['__EVENTTARGET'] = "ctl00$cMain$lnkValider"
|
self.browser['__EVENTTARGET'] = "ctl00$cMain$lnkValider"
|
||||||
self.browser['ctl00$cMain$ascSaisieMsIsdn$txtMsIsdn'] = login
|
self.browser['ctl00$cMain$ascSaisieMsIsdn$txtMsIsdn'] = login.encode('iso-8859-1')
|
||||||
self.browser['ctl00$cMain$txtMdp'] = password
|
self.browser['ctl00$cMain$txtMdp'] = password.encode('iso-8859-1')
|
||||||
self.browser.submit(nologin=True)
|
self.browser.submit(nologin=True)
|
||||||
return form
|
return form
|
||||||
|
|
||||||
|
|
@ -66,6 +66,6 @@ class LoginPage(BasePage):
|
||||||
self.browser['__VIEWSTATE'] = state
|
self.browser['__VIEWSTATE'] = state
|
||||||
self.browser['__EVENTTARGET'] = "ctl00$ascAttente$timerAttente"
|
self.browser['__EVENTTARGET'] = "ctl00$ascAttente$timerAttente"
|
||||||
self.browser['__EVENTVALIDATION'] = controlvalue
|
self.browser['__EVENTVALIDATION'] = controlvalue
|
||||||
self.browser['ctl00$cMain$ascSaisieMsIsdn$txtMsIsdn'] = login
|
self.browser['ctl00$cMain$ascSaisieMsIsdn$txtMsIsdn'] = login.encode('iso-8859-1')
|
||||||
self.browser['ctl00$cMain$txtMdp'] = ""
|
self.browser['ctl00$cMain$txtMdp'] = ""
|
||||||
self.browser.submit(nologin=True)
|
self.browser.submit(nologin=True)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue