Author: nunofsantos
Date: 2008-10-23 15:38:37 -0400 (Thu, 23 Oct 2008)
New Revision: 2677
Modified:
mgmt/trunk/mint/python/mint/schemaparser.py
Log:
add User->GridUser translation to reserved words map
Modified: mgmt/trunk/mint/python/mint/schemaparser.py
===================================================================
--- mgmt/trunk/mint/python/mint/schemaparser.py 2008-10-23 19:20:59 UTC (rev 2676)
+++ mgmt/trunk/mint/python/mint/schemaparser.py 2008-10-23 19:38:37 UTC (rev 2677)
@@ -34,7 +34,7 @@
self.reservedWords = {"in": "inRsv", "In":
"InRsv",
"connection": "clientConnection",
"Connection": "ClientConnection",
"connectionRef": "clientConnectionRef",
- "user": "juser", "User":
"Juser"}
+ "user": "gridUser", "User":
"GridUser"}
def renameReservedWord(self, name):
if (name in self.reservedWords.keys()):
@@ -193,7 +193,7 @@
self.finalPythonOutput += 'schemaReservedWordsMap = {"in":
"inRsv", "In": "InRsv", \n'
self.finalPythonOutput += ' "connection":
"clientConnection", "Connection": "ClientConnection",
\n'
self.finalPythonOutput += ' "connectionRef":
"clientConnectionRef", \n'
- self.finalPythonOutput += ' "user": "juser",
"User": "Juser"} \n\n'
+ self.finalPythonOutput += ' "user": "gridUser",
"User": "GridUser"} \n\n'
outputFile = open(self.pythonFilePath, "w")
for xmlFile in self.xmlFilePaths:
schema = mllib.xml_parse(xmlFile)