Display renew confirmation/errors

This commit is contained in:
Florent Fourcot 2012-03-15 23:15:20 +01:00 committed by Romain Bignon
commit 65251c4ceb
5 changed files with 24 additions and 10 deletions

View file

@ -29,7 +29,7 @@ __all__ = ['ChampslibresBrowser']
# Browser
class ChampslibresBrowser(BaseBrowser):
PROTOCOL = 'http'
ENCODING = None
ENCODING = 'utf-8'
PAGES = {
'.*login.*': LoginPage,
'.*home\?lang=frf.*': HomePage,
@ -66,6 +66,7 @@ class ChampslibresBrowser(BaseBrowser):
self.location('https://sbib.si.leschampslibres.fr/patroninfo~S1*frf/%s/items' % self.iduser)
self.page.renew(id)
self.page.confirm_renew()
return self.page.read_renew(id)
# TODO
def get_booked_books_list(self):