joey: thuban/Extensions/wms parser.py,1.3,1.4
cvs@intevation.de
cvs at intevation.de
Sat Apr 10 15:20:55 CEST 2004
Author: joey
Update of /thubanrepository/thuban/Extensions/wms
In directory doto:/tmp/cvs-serv11603
Modified Files:
parser.py
Log Message:
unlink the DOM object
Index: parser.py
===================================================================
RCS file: /thubanrepository/thuban/Extensions/wms/parser.py,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- parser.py 30 Mar 2004 18:05:53 -0000 1.3
+++ parser.py 10 Apr 2004 13:20:53 -0000 1.4
@@ -89,7 +89,8 @@
Information should only be retrieved with the respective
get*() methods.
"""
- root = xml.dom.minidom.parseString(data).documentElement
+ xml_dom = xml.dom.minidom.parseString(data)
+ root = xml_dom.documentElement
# Extract the title
foo = getElementByName(getElementByName(root, 'Service'), 'Title')
@@ -124,6 +125,8 @@
self.layers = []
self.peekLayers(getElementByName(getElementByName(
root, 'Capability'), 'Layer'), -1)
+
+ xml_dom.unlink()
def peekLayers(self, top, parent):
More information about the Thuban-devel
mailing list
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)