From: Giovanni Gherdovich Date: Fri, 8 Oct 2010 08:09:28 +0000 (+0200) Subject: done with refactoring for xmlrpc tracking. Need better print for certs, passing pytho... X-Git-Tag: sface-0.1-4~11 X-Git-Url: http://git.onelab.eu/?p=sface.git;a=commitdiff_plain;h=cb346e87aaf444b1142e80a8cec1e64df6a122cf done with refactoring for xmlrpc tracking. Need better print for certs, passing python objs instead of strings from the xml model --- 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)