[GRASS-SVN] r47099 - grass-addons/grass7/gui/wxpython/wx.wms
svn_grass at osgeo.org
svn_grass at osgeo.org
Tue Jul 12 14:50:35 EDT 2011
Author: sudeepsingh
Date: 2011-07-12 11:50:35 -0700 (Tue, 12 Jul 2011)
New Revision: 47099
Modified:
grass-addons/grass7/gui/wxpython/wx.wms/wmsmenu.py
Log:
Minor change in LayerTree, to add automatic expand and collapse on new request
Modified: grass-addons/grass7/gui/wxpython/wx.wms/wmsmenu.py
===================================================================
--- grass-addons/grass7/gui/wxpython/wx.wms/wmsmenu.py 2011-07-12 18:29:05 UTC (rev 47098)
+++ grass-addons/grass7/gui/wxpython/wx.wms/wmsmenu.py 2011-07-12 18:50:35 UTC (rev 47099)
@@ -82,7 +82,8 @@
def OnGetCapabilities(self, event): # wxGlade: wmsFrame.<event_handler>
#Sudeep's Code Starts
#url = 'http://www.gisnet.lv/cgi-bin/topo?request=GetCapabilities&service=wms&version=1.1.1'
- #url = self.urlInput.GetValue()
+ self.LayerTree.CollapseAndReset(self.layerTreeRoot)
+ #url = self.urlInput.GetValue()
url = self.selectedURL
url = url + '?request=GetCapabilities&service=wms&version=1.1.1'
print url
@@ -98,6 +99,7 @@
self.LayerTree.AppendItem(self.layerTreeRoot, res)
#self.Layers.SetValue(st)
#print xml
+ self.LayerTree.Expand(self.layerTreeRoot)
except HTTPError, e:
print 'The server couldn\'t fulfill the request.'
print 'Error code: ', e.code
More information about the grass-commit
mailing list