Fix some strange effects with login

This commit is contained in:
Florent Fourcot 2012-03-15 21:18:40 +01:00 committed by Romain Bignon
commit 8c0dbe18f0
2 changed files with 12 additions and 9 deletions

View file

@ -41,8 +41,13 @@ class ChampslibresBackend(BaseBackend, ICapBook):
BROWSER = ChampslibresBrowser
def create_default_browser(self):
return self.create_browser(self.config['login'].get(),
browser = self.create_browser(self.config['login'].get(),
self.config['password'].get())
# we have to force the login before to lauch any actions
browser.login()
return browser
def get_rented(self):
for book in self.browser.get_rented_books_list():