I'm using the quickly unity lens template here http://developer.ubuntu.com/2012/04/how-to-create-a-wikipedia-unity-lens-for-ubuntu/ It works quite all right, but even though i have set search_in_global to true the global search calls my lens's search function without the entered search parameter, thus it returns everything it can find:
class Meta:
name = 'myLens'
description = 'My Lens'
search_hint = 'Search My Lens'
icon = 'mylens.svg'
search_on_blank=True
search_in_global=True #doesn't seem to work
When i type in a global search my search function is not called with the entered phrases but with a blank string/null:
def search(self, search, results):
print "searching for %s" % search
#...
Can anyone help me out here?
Thanks for the quick reply! i added the proposed method like so:
def global_search(self, search, results):
print "searching globally for %s" % search
self.search(search, results)
unfortunally the output when i type anything in the global dash doesn't change a lot:
leopard2a5@Spieleknecht:~/Desktop/mylens$ quickly run
searching globally for
searching for