update to xmlrpc tracker, work in progress
[sface.git] / sface / sfiprocess.py
index 108530c..6950554 100644 (file)
@@ -5,7 +5,7 @@ import time
 
 from PyQt4.QtCore import *
 from sface.config import config
 
 from PyQt4.QtCore import *
 from sface.config import config
-from sface.xmlrpcwindow import XmlrpcTracker, XmlrpcReader
+from sface.xmlrpcwindow import get_tracker, XmlrpcReader
 
 def find_executable(exec_name):
     """find the given executable in $PATH"""
 
 def find_executable(exec_name):
     """find the given executable in $PATH"""
@@ -29,7 +29,6 @@ class SfiProcess(QObject):
                      self.processFinished)
 
         self.xmlrpcreader = XmlrpcReader() # this one is for parsing XMLRPC responses
                      self.processFinished)
 
         self.xmlrpcreader = XmlrpcReader() # this one is for parsing XMLRPC responses
-        self.xmlrpctracker = XmlrpcTracker() # this one is for the debug window
 
         # holds aggregate output from processStandardOutput(); used by xmlrpc
         # tracker.
 
         # holds aggregate output from processStandardOutput(); used by xmlrpc
         # tracker.
@@ -212,5 +211,5 @@ class SfiProcess(QObject):
 #            command = "%s %s" % (self.exe, self.args.join(" "))
             print time.strftime('%H:%M:%S'),"Done [%.3f s]"%(time.time()-self._trace)
         if config.debug:
 #            command = "%s %s" % (self.exe, self.args.join(" "))
             print time.strftime('%H:%M:%S'),"Done [%.3f s]"%(time.time()-self._trace)
         if config.debug:
-            self.xmlrpctracker.getAndPrint(self.output)
+            get_tracker().getAndPrint(self.output)