summaryrefslogtreecommitdiffstats
path: root/src/Gui/CCDBusBackend.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/Gui/CCDBusBackend.py')
-rw-r--r--src/Gui/CCDBusBackend.py10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/Gui/CCDBusBackend.py b/src/Gui/CCDBusBackend.py
index 0408df9..5199f4a 100644
--- a/src/Gui/CCDBusBackend.py
+++ b/src/Gui/CCDBusBackend.py
@@ -26,7 +26,7 @@ class DBusManager(gobject.GObject):
# new crash notify
self.proxy.connect_to_signal("Crash",self.crash_cb,dbus_interface=CC_IFACE)
# BT extracting complete
- self.proxy.connect_to_signal("AnalyzeComplete",self.analyze_complete_cb,dbus_interface=CC_IFACE)
+ #self.proxy.connect_to_signal("AnalyzeComplete",self.analyze_complete_cb,dbus_interface=CC_IFACE)
else:
raise Exception("Proxy object doesn't exist!")
@@ -34,6 +34,10 @@ class DBusManager(gobject.GObject):
def disconnected(*args):
print "disconnect"
+ def error_handler(self,*args):
+ for arg in args:
+ print "error %s" % arg
+
def crash_cb(self,*args):
#FIXME "got another crash, gui should reload!"
#for arg in args:
@@ -60,7 +64,9 @@ class DBusManager(gobject.GObject):
def getReport(self, UUID):
try:
- return self.cc.CreateReport(UUID)
+ #return self.cc.CreateReport(UUID)
+ # let's try it async
+ self.cc.CreateReport(UUID, reply_handler=self.analyze_complete_cb, error_handler=self.error_handler)
except dbus.exceptions.DBusException, e:
raise Exception(e.message)