[GRASS-SVN] r46818 - grass-addons/grass7/gui/wxpython/wx.wms

svn_grass at osgeo.org svn_grass at osgeo.org
Tue Jun 28 04:47:04 EDT 2011


Author: sudeepsingh
Date: 2011-06-28 01:47:04 -0700 (Tue, 28 Jun 2011)
New Revision: 46818

Modified:
   grass-addons/grass7/gui/wxpython/wx.wms/parse.py
Log:
Code for parsing the xml response of the GetCapabilites, current version supports only command line interface, run as  python parse.py

Modified: grass-addons/grass7/gui/wxpython/wx.wms/parse.py
===================================================================
--- grass-addons/grass7/gui/wxpython/wx.wms/parse.py	2011-06-28 08:46:14 UTC (rev 46817)
+++ grass-addons/grass7/gui/wxpython/wx.wms/parse.py	2011-06-28 08:47:04 UTC (rev 46818)
@@ -13,33 +13,7 @@
     	namelist = node.getElementsByTagName('Name')
     	for name in namelist:
     		print name.toxml()
-       	'''temp = node.getElementsByTagName('Name')
-    	if hasattr(temp,'toxml'):
-    		temp.toxml()
-    		print 'yoyo'
-    	else:
-    		print 'dkndskjfnskdjnksdjfn'
- '''
+       
 
-
-    #print layerlist
-    '''forecasts = []
-    for node in dom.getElementsByTagNameNS(WEATHER_NS, 'forecast'):
-        forecasts.append({
-            'date': node.getAttribute('date'),
-            'low': node.getAttribute('low'),
-            'high': node.getAttribute('high'),
-            'condition': node.getAttribute('text')
-        })
-    ycondition = dom.getElementsByTagNameNS(WEATHER_NS, 'condition')[0]
-    return {
-        'current_condition': ycondition.getAttribute('text'),
-        'current_temp': ycondition.getAttribute('temp'),
-        'forecasts': forecasts,
-        'title': dom.getElementsByTagName('title')[0].firstChild.data
-    }'''
-    
-
-
 parsexml()
 



More information about the grass-commit mailing list