Permalink
Browse files

Enhanced www search, removed calling of unsafe method send_object, fi…

…lled correct refId in WebSearch
  • Loading branch information...
1 parent 4b7acea commit 450fb271d46d02ea1dc2b9cc79d02ab56ce1b441 @Eichhoernchen Eichhoernchen committed Feb 10, 2012
Showing with 6 additions and 5 deletions.
  1. +4 −3 plugins.conf
  2. +2 −2 plugins/wwwsearch.py
View
@@ -4,16 +4,17 @@
# The plugin must be in the plugins folder
# Do not add the .py ending here
-wwwsearch
weather
alarmPlugin
timerPlugin
timePlugin
wordnikDefinitions
-smalltalk
examplePlugin
+wwwsearch
displaypicture
XBMC
+notes
+smalltalk
startRequestHandler
wolfram
-notes
+
View
@@ -37,8 +37,8 @@ def webSearch(self, speech, language):
if speech == "":
speech = self.ask("Nach was soll ich suchen?")
- search = WebSearch(refId="", aceId="", query=speech)
- self.send_object(search)
+ search = WebSearch(refId=self.refId, query=speech)
+ self.sendRequestWithoutAnswer(search)
self.complete_request()

0 comments on commit 450fb27

Please sign in to comment.