[rhmessaging-commits] rhmessaging commits: r2449 - mgmt/trunk/mint/python/mint.
rhmessaging-commits at lists.jboss.org
rhmessaging-commits at lists.jboss.org
Thu Sep 11 15:24:35 EDT 2008
Author: nunofsantos
Date: 2008-09-11 15:24:35 -0400 (Thu, 11 Sep 2008)
New Revision: 2449
Modified:
mgmt/trunk/mint/python/mint/schemaparser.py
Log:
output reserved words replacement map to schema file
Modified: mgmt/trunk/mint/python/mint/schemaparser.py
===================================================================
--- mgmt/trunk/mint/python/mint/schemaparser.py 2008-09-11 19:16:12 UTC (rev 2448)
+++ mgmt/trunk/mint/python/mint/schemaparser.py 2008-09-11 19:24:35 UTC (rev 2449)
@@ -181,6 +181,9 @@
self.pythonOutput += "from qpid.management import objectId\n"
self.finalPythonOutput += "\nclassToSchemaNameMap = dict()\n"
self.finalPythonOutput += "schemaNameToClassMap = dict()\n"
+ self.finalPythonOutput += 'schemaReservedWordsMap = {"in": "inRsv", "In": "InRsv", \n'
+ self.finalPythonOutput += ' "connection": "clientConnection", "Connection": "ClientConnection", \n'
+ self.finalPythonOutput += ' "other": "otherRsv"}\n\n'
outputFile = open(self.pythonFilePath, "w")
for xmlFile in self.xmlFilePaths:
schema = mllib.xml_parse(xmlFile)
More information about the rhmessaging-commits
mailing list