From 8408f0119f4294378e3c9d3c434f5fdbff8f3c04 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sun, 7 Aug 2011 11:54:48 -0600 Subject: [PATCH] Fix #822359 (AttributeError:'OpenBooksStore' object has no attribute 'url' Traceback (most recent call last): File "/usr/lib/calibre/calibre/gui2/actions/store.py", line 126, in open_store store_plugin.open(self.gui) File "/usr/lib/calibre/calibre/gui2/store/stores/open_books_plugin.py", line 31, in open d = WebStoreDialog(self.gui, self.url, parent, detail_item) AttributeError: 'OpenBooksStore' object has no attribute 'url' [with fix]) --- src/calibre/gui2/store/stores/open_books_plugin.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/calibre/gui2/store/stores/open_books_plugin.py b/src/calibre/gui2/store/stores/open_books_plugin.py index 2e6c438d9d..99b68656e9 100644 --- a/src/calibre/gui2/store/stores/open_books_plugin.py +++ b/src/calibre/gui2/store/stores/open_books_plugin.py @@ -28,7 +28,7 @@ class OpenBooksStore(BasicStoreConfig, StorePlugin): if external or self.config.get('open_external', False): open_url(QUrl(url_slash_cleaner(detail_item if detail_item else url))) else: - d = WebStoreDialog(self.gui, self.url, parent, detail_item) + d = WebStoreDialog(self.gui, url, parent, detail_item) d.setWindowTitle(self.name) d.set_tags(self.config.get('tags', '')) d.exec_() @@ -44,7 +44,7 @@ class OpenBooksStore(BasicStoreConfig, StorePlugin): for data in doc.xpath('//ul[@id="object_list"]//li'): if counter <= 0: break - + id = ''.join(data.xpath('.//div[@class="links"]/a[1]/@href')) id = id.strip() if not id: