Exemplo n.º 1
0
 def search_internet(self, data):
     if self.last_data:
         if data.author is None:
             url = url_for_book_search(data.where, title=self.last_data['title'], author=self.last_data['authors'][0])
         else:
             url = url_for_author_search(data.where, author=data.author)
         safe_open_url(url)
Exemplo n.º 2
0
 def search_internet(self, data):
     if self.last_data:
         if data.author is None:
             url = url_for_book_search(data.where, title=self.last_data['title'], author=self.last_data['authors'][0])
         else:
             url = url_for_author_search(data.where, author=data.author)
         open_url(url)