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

svn_grass at osgeo.org svn_grass at osgeo.org
Sat Jul 30 10:40:57 EDT 2011


Author: sudeepsingh
Date: 2011-07-30 07:40:56 -0700 (Sat, 30 Jul 2011)
New Revision: 47319

Removed:
   grass-addons/grass7/gui/wxpython/wx.wms/bgenerateDOM.py
   grass-addons/grass7/gui/wxpython/wx.wms/generateDOM.py
Log:
removing unnecessary files, these were test files no longer required

Deleted: grass-addons/grass7/gui/wxpython/wx.wms/bgenerateDOM.py
===================================================================
--- grass-addons/grass7/gui/wxpython/wx.wms/bgenerateDOM.py	2011-07-30 14:36:34 UTC (rev 47318)
+++ grass-addons/grass7/gui/wxpython/wx.wms/bgenerateDOM.py	2011-07-30 14:40:56 UTC (rev 47319)
@@ -1,15 +0,0 @@
-from BeautifulSoup import BeautifulSoup, Tag, NavigableString, BeautifulStoneSoup
-from ServerInfoAPIs import addServerInfo, removeServerInfo, updateServerInfo, initServerInfoBase, getAllRows
-
-
-soup, f = initServerInfoBase('out.xml')
-print addServerInfo(soup, soup.serverinfo, 'a1', 'b1', 'c1', 'd1')
-print addServerInfo(soup, soup.serverinfo, 'a2', 'b2', 'c2', 'd2')
-print addServerInfo(soup, soup.serverinfo, 'a1', 'b1', 'c1', 'd1')              
-print updateServerInfo(soup, soup.serverinfo, 'a1', 'b112', 'c112', 'd112')
-print removeServerInfo(soup, "a2")
-
-print getAllRows(soup)
-xml = soup.prettify()
-f.write(xml)
-f.close()

Deleted: grass-addons/grass7/gui/wxpython/wx.wms/generateDOM.py
===================================================================
--- grass-addons/grass7/gui/wxpython/wx.wms/generateDOM.py	2011-07-30 14:36:34 UTC (rev 47318)
+++ grass-addons/grass7/gui/wxpython/wx.wms/generateDOM.py	2011-07-30 14:40:56 UTC (rev 47319)
@@ -1,41 +0,0 @@
-from xml.dom.minidom import Document
-
-def prepareDOMServerInfo(servernametextstring, serverurltextstring, usernametextstring, passwordtextstring):
-	# Create the minidom document
-	doc = Document()
-	
-	# Create the <serverinfo> base element
-	serverinfo = doc.createElement("serverinfo")
-	doc.appendChild(serverinfo)
-	
-	servername = doc.createElement("servername")
-	serverinfo.appendChild(servername)
-	
-	serverurl = doc.createElement("serverurl")
-	serverinfo.appendChild(serverurl)
-	
-	username = doc.createElement("username")
-	serverinfo.appendChild(username)
-	
-	password = doc.createElement("password")
-	serverinfo.appendChild(password)
-	
-	
-	servernametext = doc.createTextNode(servernametextstring)
-	servername.appendChild(servernametext)
-	
-	serverurltext = doc.createTextNode(serverurltextstring)
-	serverurl.appendChild(serverurltext)
-	
-	usernametext = doc.createTextNode(usernametextstring)
-	username.appendChild(usernametext)
-	
-	passwordtext = doc.createTextNode(passwordtextstring)
-	password.appendChild(passwordtext)
-	
-	return doc
-
-
-doc = prepareDOMServerInfo('alpha','beta','gamma','delta')
-print doc.toprettyxml(indent = "  ")
-



More information about the grass-commit mailing list