[weboob] [PATCH 1/1] modified: weboob/backends/bp/browser.py Update LOCAL_HASH due to website update

Nicolas Duhamel nicolas at jombi.fr
Wed Sep 29 22:59:27 CEST 2010


Signed-off-by: Nicolas Duhamel <nicolas at jombi.fr>
---
 weboob/backends/bp/browser.py |   12 +++++++-----
 1 files changed, 7 insertions(+), 5 deletions(-)

diff --git a/weboob/backends/bp/browser.py b/weboob/backends/bp/browser.py
index 1f1a0b4..3a054d6 100644
--- a/weboob/backends/bp/browser.py
+++ b/weboob/backends/bp/browser.py
@@ -36,10 +36,8 @@ def remove_extra_spaces(data):
 
 
 
-LOCAL_HASH = ['a02574d7bf67677d2a86b7bfc5e864fe', 'eb85e1cc45dd6bdb3cab65c002d7ac8a',
-'596e6fbd54d5b111fe5df8a4948e80a4', '9cdc989a4310554e7f5484d0d27a86ce', '0183943de6c0e331f3b9fc49c704ac6d',
-'291b9987225193ab1347301b241e2187', '163279f1a46082408613d12394e4042a', 'b0a9c740c4cada01eb691b4acda4daea',
-'3c4307ee92a1f3b571a3c542eafcb330', 'c5b854ae314b61ba42948909e0b2eae7']
+LOCAL_HASH = ['a02574d7bf67677d2a86b7bfc5e864fe', 'eb85e1cc45dd6bdb3cab65c002d7ac8a', '596e6fbd54d5b111fe5df8a4948e80a4', '9cdc989a4310554e7f5484d0d27a86ce', '0183943de6c0e331f3b9fc49c704ac6d', '291b9987225193ab1347301b241e2187', '163279f1a46082408613d12394e4042a', 'b0a9c740c4cada01eb691b4acda4daea', '3c4307ee92a1f3b571a3c542eafcb330', 'dbccecfa2206bfdb4ca891476404cc68']
+
 ENCODING = 'utf-8'
 
 class BPbrowser(object):
@@ -72,9 +70,13 @@ class BPbrowser(object):
 
         self.Browser.open("https://voscomptesenligne.labanquepostale.fr/wsost/OstBrokerWeb/loginform?TAM_OP=login&ERROR_CODE=0x00000000&URL=%2Fvoscomptes%2FcanalXHTML%2Fidentif.ea%3Forigin%3Dparticuliers")
 
-        process = lambda i: md5(self.Browser.retrieve(("https://voscomptesenligne.labanquepostale.fr/wsost/OstBrokerWeb/loginform?imgid=%d&0.25122230781963073" % i ))[0])
+        process = lambda i: md5(
+        
+        self.Browser.retrieve(("https://voscomptesenligne.labanquepostale.fr/wsost/OstBrokerWeb/loginform?imgid=%d&0.25122230781963073" % i ))[0])
         Keypad = [ process(i) for i in range(10)]
+      
         correspondance = [ Keypad.index(i) for i in LOCAL_HASH]
+            
 
         Newpassword = "".join([str(correspondance[int(c)]) for c in self.pwd])
 
-- 
1.7.1




More information about the weboob mailing list