joey: thuban/Extensions/wms capabilities.py,1.1,1.2
cvs@intevation.de
cvs at intevation.de
Wed Mar 24 21:05:35 CET 2004
Author: joey
Update of /thubanrepository/thuban/Extensions/wms
In directory doto:/tmp/cvs-serv15106
Modified Files:
capabilities.py
Log Message:
Renamed the class to contain 'WMS', also added a linebreak where required
Index: capabilities.py
===================================================================
RCS file: /thubanrepository/thuban/Extensions/wms/capabilities.py,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- capabilities.py 16 Mar 2004 19:14:56 -0000 1.1
+++ capabilities.py 24 Mar 2004 20:05:33 -0000 1.2
@@ -68,7 +68,7 @@
from ogclib.WMSClient import WMSClient
-class Capabilities (WMSClient):
+class WMSCapabilities (WMSClient):
"""
Thuban class to maintain capabilities. This class provides
methods to fetch, save and load capabilities as well as methods to
@@ -100,7 +100,9 @@
if parm[0].find ("http://",0) == 0:
self.fetchCapabilities (parm[0])
else:
- self.errorMsg = _("Resource '%s' is neither local file nor URL") % parm[0]
+ self.errorMsg \
+ = _("Resource '%s' is neither local file nor URL")
+ % parm[0]
def getErrorMsg (self):
@@ -150,7 +152,8 @@
if __name__ == "__main__":
- capa = Capabilities("http://frida.intevation.org/cgi-bin/frida_wms?")
+ capabilities \
+ = WMSCapabilities("http://frida.intevation.org/cgi-bin/frida_wms?")
if capa.getErrorMsg() is None:
capa.saveCapabilities("frida_capabilities.xml")
else:
More information about the Thuban-devel
mailing list
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)