[weboob] [PATCH 1/3] LCL: fix login

Pierre Mazière pierre.maziere at gmail.com
Sun Mar 6 23:47:52 CET 2011


Signed-off-by: Pierre Mazière <pierre.maziere at gmail.com>
---
 weboob/backends/lcl/browser.py |    5 ++++-
 weboob/backends/lcl/pages.py   |    4 ++++
 2 files changed, 8 insertions(+), 1 deletions(-)

diff --git a/weboob/backends/lcl/browser.py b/weboob/backends/lcl/browser.py
index 124e009..b1b2252 100644
--- a/weboob/backends/lcl/browser.py
+++ b/weboob/backends/lcl/browser.py
@@ -18,7 +18,7 @@
 
 from weboob.tools.browser import BaseBrowser, BrowserIncorrectPassword
 
-from .pages import LoginPage, LoginErrorPage, AccountsPage
+from .pages import LoginPage, LoginErrorPage, FramePage, AccountsPage
 
 
 __all__ = ['LCLBrowser']
@@ -34,6 +34,7 @@ class LCLBrowser(BaseBrowser):
         'https://particuliers.secure.lcl.fr/index.html':   LoginPage,
         'https://particuliers.secure.lcl.fr/everest/UWBI/UWBIAccueil\?DEST=IDENTIFICATION': LoginErrorPage,
         'https://particuliers.secure.lcl.fr/outil/UWSP/Synthese/accesSynthese': AccountsPage,
+        'https://particuliers.secure.lcl.fr/outil/UWB2/Accueil\?DEST=INIT': FramePage,
         }
 
     def __init__(self, agency, *args, **kwargs):
@@ -55,6 +56,8 @@ class LCLBrowser(BaseBrowser):
         if not self.is_logged() or self.is_on_page(LoginErrorPage):
             raise BrowserIncorrectPassword()
 
+        self.location('%s://%s/outil/UWSP/Synthese/accesSynthese' % (self.PROTOCOL, self.DOMAIN))
+
     def get_accounts_list(self):
         if not self.is_on_page(AccountsPage):
             self.home()
diff --git a/weboob/backends/lcl/pages.py b/weboob/backends/lcl/pages.py
index 27fde76..f644643 100644
--- a/weboob/backends/lcl/pages.py
+++ b/weboob/backends/lcl/pages.py
@@ -29,6 +29,10 @@ class LoginPage(BasePage):
 class LoginErrorPage(BasePage):
     pass
 
+class FramePage(BasePage):
+    pass
+
+
 class AccountsPage(BasePage):
     def get_list(self):
         raise NotImplementedError()
-- 
1.7.2.3




More information about the weboob mailing list