removed debug traces
This commit is contained in:
parent
093bffda4d
commit
b334cc6f76
@ -44,9 +44,6 @@ if result != 1 :
|
|||||||
print >> sys.stderr, "Failed to own name %s. Bailing out." % BUS_NAME
|
print >> sys.stderr, "Failed to own name %s. Bailing out." % BUS_NAME
|
||||||
raise SystemExit (1)
|
raise SystemExit (1)
|
||||||
|
|
||||||
rcltrace = open("/tmp/recolenstrace", "a")
|
|
||||||
|
|
||||||
print >> rcltrace, "UNITY RECOLL DAEMON"
|
|
||||||
def create_lens ():
|
def create_lens ():
|
||||||
# The path for the Lens *must* also match the one in our .lens file
|
# The path for the Lens *must* also match the one in our .lens file
|
||||||
from gi.repository import Unity
|
from gi.repository import Unity
|
||||||
@ -82,13 +79,9 @@ def create_lens ():
|
|||||||
lens.props.filters.append(filter)
|
lens.props.filters.append(filter)
|
||||||
return lens
|
return lens
|
||||||
|
|
||||||
print >> rcltrace, "UNITY RECOLL DAEMON: create lens"
|
|
||||||
lens = create_lens ()
|
lens = create_lens ()
|
||||||
print >> rcltrace, "UNITY RECOLL DAEMON: add local scope"
|
|
||||||
lens.add_local_scope (recollscope.rclsearch.Scope())
|
lens.add_local_scope (recollscope.rclsearch.Scope())
|
||||||
# add more local scopes here (remote dbus scopes added automagically)
|
# add more local scopes here (remote dbus scopes added automagically)
|
||||||
print >> rcltrace, "UNITY RECOLL DAEMON: add local export"
|
|
||||||
lens.export ()
|
lens.export ()
|
||||||
|
|
||||||
print >> rcltrace, "UNITY RECOLL DAEMON: add local main loop"
|
|
||||||
GObject.MainLoop().run()
|
GObject.MainLoop().run()
|
||||||
|
|||||||
@ -19,10 +19,6 @@ TYPING_TIMEOUT = 0
|
|||||||
class Scope (Unity.Scope):
|
class Scope (Unity.Scope):
|
||||||
|
|
||||||
def __init__ (self):
|
def __init__ (self):
|
||||||
self.trcfile = open("/tmp/recolenstrace", "w")
|
|
||||||
print >> self.trcfile, "Scope init"
|
|
||||||
self.trcfile.flush()
|
|
||||||
|
|
||||||
Unity.Scope.__init__ (self, dbus_path="/org/recoll/unitylensrecoll/scope/main")
|
Unity.Scope.__init__ (self, dbus_path="/org/recoll/unitylensrecoll/scope/main")
|
||||||
|
|
||||||
# Listen for changes and requests
|
# Listen for changes and requests
|
||||||
@ -31,10 +27,7 @@ class Scope (Unity.Scope):
|
|||||||
|
|
||||||
# Bliss loaded the apps_tree menu here, let's connect to
|
# Bliss loaded the apps_tree menu here, let's connect to
|
||||||
# the index
|
# the index
|
||||||
print >> self.trcfile, "Connecting to db"
|
|
||||||
self.db = recoll.connect()
|
self.db = recoll.connect()
|
||||||
print >> self.trcfile, "Done"
|
|
||||||
self.trcfile.flush()
|
|
||||||
|
|
||||||
self.db.setAbstractParams(maxchars=200,
|
self.db.setAbstractParams(maxchars=200,
|
||||||
contextwords=4)
|
contextwords=4)
|
||||||
@ -116,8 +109,8 @@ class Scope (Unity.Scope):
|
|||||||
search_string, model)
|
search_string, model)
|
||||||
|
|
||||||
def _really_do_search(self, search_string, model):
|
def _really_do_search(self, search_string, model):
|
||||||
print >> self.trcfile, "really_do_search:[", search_string, "]"
|
# print "really_do_search:[", search_string, "]"
|
||||||
self.trcfile.flush()
|
|
||||||
model.clear ()
|
model.clear ()
|
||||||
if search_string == "":
|
if search_string == "":
|
||||||
return True
|
return True
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user