[GRASS-SVN] r47389 - grass-addons/grass7/gui/wxpython/wx.wms
svn_grass at osgeo.org
svn_grass at osgeo.org
Wed Aug 3 13:04:45 EDT 2011
Author: sudeepsingh
Date: 2011-08-03 10:04:45 -0700 (Wed, 03 Aug 2011)
New Revision: 47389
Modified:
grass-addons/grass7/gui/wxpython/wx.wms/wmsmenu.py
Log:
non ascii username fixed, one known issue left with non ascii, fix to be done shortly
Modified: grass-addons/grass7/gui/wxpython/wx.wms/wmsmenu.py
===================================================================
--- grass-addons/grass7/gui/wxpython/wx.wms/wmsmenu.py 2011-08-03 16:56:01 UTC (rev 47388)
+++ grass-addons/grass7/gui/wxpython/wx.wms/wmsmenu.py 2011-08-03 17:04:45 UTC (rev 47389)
@@ -101,7 +101,7 @@
return
- f = open('serverList.txt','r')
+ '''f = open('serverList.txt','r')
lines = f.readlines()
self.servers = {}
for line in lines:
@@ -111,7 +111,7 @@
self.servers[row[0]] = row[1]
name = row[0]+" "+row[1][7:45]
ComboBox.Append(name)
- f.close()
+ f.close()'''
def OnGetCapabilities(self, event): # wxGlade: wmsFrame.<event_handler>
self.usernameInput.Enable()
@@ -127,9 +127,10 @@
try:
response = urlopen(req)
xml = response.read()
- f=open('in1.xml','r')
- xml=f.read()
- f.close()
+ #for testing pruposes
+ #f=open('in1.xml','r')
+ #xml=f.read()
+ #f.close()
#self.statusbar.SetStatusText(xml)
reslist = parsexml(xml)
@@ -223,7 +224,7 @@
url = self.ServerList.GetValue()
urlarr = url.split()
if(len(urlarr)==2):
- self.selectedURL = self.servers[urlarr[0]]
+ self.selectedURL = self.servers[urlarr[0]].url
print self.selectedURL
else:
print "Wrong format of URL selected"
More information about the grass-commit
mailing list