Renew command on champslibres

This commit is contained in:
Florent Fourcot 2012-03-15 22:35:03 +01:00 committed by Romain Bignon
commit 03f998a33f
3 changed files with 24 additions and 0 deletions

View file

@ -61,6 +61,12 @@ class ChampslibresBrowser(BaseBrowser):
self.location('https://sbib.si.leschampslibres.fr/patroninfo~S1*frf/%s/items' % self.iduser)
return self.page.get_list()
def renew(self, id):
if not self.is_on_page(RentedPage):
self.location('https://sbib.si.leschampslibres.fr/patroninfo~S1*frf/%s/items' % self.iduser)
self.page.renew(id)
self.page.confirm_renew()
# TODO
def get_booked_books_list(self):
return []