remove "http://%s%%s" % DOMAIN workaround and shorten

This commit is contained in:
Noé Rubinstein 2011-09-04 00:06:04 +02:00 committed by Romain Bignon
commit 2993efcf55
6 changed files with 10 additions and 11 deletions

View file

@ -49,7 +49,11 @@ class GenericComicReaderBrowser(BaseBrowser):
assert self.is_on_page(DisplayPage)
for p in self.page.page_list():
self.location(self.params['page_to_location'] % p)
if 'page_to_location' in self.params:
self.location(self.params['page_to_location'] % p)
else:
self.location(p)
assert self.is_on_page(DisplayPage)
yield self.page.get_page(gallery)