/[thuban]/trunk/thuban/Extensions/wms/parser.py
ViewVC logotype

Diff of /trunk/thuban/Extensions/wms/parser.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2152 by joey, Tue Mar 30 18:05:53 2004 UTC revision 2153 by joey, Sat Apr 10 13:20:53 2004 UTC
# Line 89  class WMSCapabilitiesParser: Line 89  class WMSCapabilitiesParser:
89          Information should only be retrieved with the respective          Information should only be retrieved with the respective
90          get*() methods.          get*() methods.
91          """          """
92          root = xml.dom.minidom.parseString(data).documentElement          xml_dom = xml.dom.minidom.parseString(data)
93            root = xml_dom.documentElement
94    
95          # Extract the title          # Extract the title
96          foo = getElementByName(getElementByName(root, 'Service'), 'Title')          foo = getElementByName(getElementByName(root, 'Service'), 'Title')
# Line 125  class WMSCapabilitiesParser: Line 126  class WMSCapabilitiesParser:
126          self.peekLayers(getElementByName(getElementByName(          self.peekLayers(getElementByName(getElementByName(
127              root, 'Capability'), 'Layer'), -1)              root, 'Capability'), 'Layer'), -1)
128    
129            xml_dom.unlink()
130    
131    
132      def peekLayers(self, top, parent):      def peekLayers(self, top, parent):
133          """          """

Legend:
Removed from v.2152  
changed lines
  Added in v.2153

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26