From cb346e87aaf444b1142e80a8cec1e64df6a122cf Mon Sep 17 00:00:00 2001 From: Giovanni Gherdovich Date: Fri, 8 Oct 2010 10:09:28 +0200 Subject: [PATCH] done with refactoring for xmlrpc tracking. Need better print for certs, passing python objs instead of strings from the xml model --- sface/sfiprocess.py | 2 ++ sface/xmlrpcwindow.py | 1 + 2 files changed, 3 insertions(+) diff --git a/sface/sfiprocess.py b/sface/sfiprocess.py index 1e93b29..1d88155 100644 --- a/sface/sfiprocess.py +++ b/sface/sfiprocess.py @@ -37,6 +37,7 @@ class SfiProcess(QObject): def __init_command(self, args): self.args = QStringList() + print "DEBUG FLAG:", config.debug if config.debug: # this shows xmlrpc conversation, see sfi.py docs. self.args << QString('-D') @@ -57,6 +58,7 @@ class SfiProcess(QObject): # It's cool to have this method wo we print the stdOut live, # but we must be carefull with self.output, used by XmlrpcTracker too. tmpOut = self.process.readAllStandardOutput() + print "STDOUT READY" if config.debug: print tmpOut self.output += tmpOut diff --git a/sface/xmlrpcwindow.py b/sface/xmlrpcwindow.py index 483d443..86c47c2 100644 --- a/sface/xmlrpcwindow.py +++ b/sface/xmlrpcwindow.py @@ -7,6 +7,7 @@ class XmlrpcTracker(): self.xmlrpcWindow = XmlrpcWindow() def getAndPrint(self, rawOutput): + print "RAW OUTPUT:\n" + rawOutput + "\nEND OF RAW OUT" self.store(rawOutput) self.extractXml() self.xmlrpcWindow.setData(self.xml) -- 2.43.0