[Pywps-commits] r780 - trunk
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Sun Feb 22 17:53:32 CET 2009
Author: jachym
Date: 2009-02-22 17:53:31 +0100 (Sun, 22 Feb 2009)
New Revision: 780
Modified:
trunk/wps.py
Log:
new debug method in wps.py NOTE: this should be consolidated for all classes
Modified: trunk/wps.py
===================================================================
--- trunk/wps.py 2009-02-22 15:33:20 UTC (rev 779)
+++ trunk/wps.py 2009-02-22 16:53:31 UTC (rev 780)
@@ -139,6 +139,7 @@
# inputs parsed, perform request
if self.inputs:
+ self.debug(self.inputs)
self.performRequest()
# request performed, write the response back
@@ -233,5 +234,13 @@
value = True
return value
+ def debug(self,debug):
+ """Print debug argument to standard error
+ """
+
+ dbg = self.getConfigValue("server","debug")
+ if dbg == True or dbg.lower() == "true" or int(dbg) != 0:
+ print >>sys.stderr, "PyWPS Debug: %s" % debug.__str__()
+
if __name__ == "__main__":
wps = WPS()
More information about the Pywps-commits
mailing list