[Pywps-commits] r582 - trunk

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Mon Sep 8 15:05:47 CEST 2008


Author: jachym
Date: 2008-09-08 15:05:47 +0200 (Mon, 08 Sep 2008)
New Revision: 582

Modified:
   trunk/wps.py
Log:
bugfix

Modified: trunk/wps.py
===================================================================
--- trunk/wps.py	2008-09-08 13:04:29 UTC (rev 581)
+++ trunk/wps.py	2008-09-08 13:05:47 UTC (rev 582)
@@ -58,7 +58,7 @@
 import pywps
 from pywps import Parser 
 from pywps import Exceptions
-from pywps import WPS
+from pywps import Wps
 from pywps.Exceptions import *
 
 import sys, os, ConfigParser
@@ -170,8 +170,8 @@
         # Windows or Unix
         if sys.platform == 'win32':
             self.workingDir = os.path.abspath(os.path.join(os.getcwd(), os.path.dirname(sys.argv[0])))
-            cfgfiles = (os.path.join(workingDir,"pywps","default.cfg"),
-                       os.path.join(workingDir, "pywps","etc","pywps.cfg"))
+            cfgfiles = (os.path.join(self.workingDir,"pywps","default.cfg"),
+                       os.path.join(self.workingDir, "pywps","etc","pywps.cfg"))
         else:
             cfgfiles = (os.path.join(pywps.__path__[0],"default.cfg"),
                         os.path.join(pywps.__path__[0],"etc", "pywps.cfg"), "/etc/pywps.cfg")
@@ -185,13 +185,13 @@
         # the modules are imported first, when the request type is known
         try:
             if self.inputs["request"]  == "getcapabilities":
-                from pywps.WPS.GetCapabilities import GetCapabilities
+                from pywps.Wps.GetCapabilities import GetCapabilities
                 self.request = GetCapabilities(self)
             elif self.inputs["request"]  == "describeprocess":
-                from pywps.WPS.DescribeProcess import DescribeProcess
+                from pywps.Wps.DescribeProcess import DescribeProcess
                 self.request = DescribeProcess(self)
             elif self.inputs["request"]  == "execute":
-                from pywps.WPS.Execute import Execute
+                from pywps.Wps.Execute import Execute
                 self.request = Execute(self)
             else:
                 raise self.exceptions.InvalidParameterValue(



More information about the Pywps-commits mailing list