[rhmessaging-commits] rhmessaging commits: r2277 - mgmt/trunk/mint/python/mint.
rhmessaging-commits at lists.jboss.org
rhmessaging-commits at lists.jboss.org
Mon Aug 11 17:59:13 EDT 2008
Author: nunofsantos
Date: 2008-08-11 17:59:12 -0400 (Mon, 11 Aug 2008)
New Revision: 2277
Modified:
mgmt/trunk/mint/python/mint/schemaparser.py
Log:
parser handles multiple xml schema files specified in SCHEMA_XML env var -- move deferred references to end of python output
Modified: mgmt/trunk/mint/python/mint/schemaparser.py
===================================================================
--- mgmt/trunk/mint/python/mint/schemaparser.py 2008-08-11 21:13:51 UTC (rev 2276)
+++ mgmt/trunk/mint/python/mint/schemaparser.py 2008-08-11 21:59:12 UTC (rev 2277)
@@ -163,14 +163,13 @@
def endClass(self):
if (self.additionalPythonOutput != ""):
- self.pythonOutput += self.additionalPythonOutput + "\n"
+ self.finalPythonOutput += self.additionalPythonOutput + "\n"
self.additionalPythonOutput = ""
if (self.pythonOutput.endswith("(SQLObject):\n")):
self.pythonOutput += " pass\n"
self.currentClass = ""
def generateCode(self):
-
self.pythonOutput += "import mint\n"
self.pythonOutput += "from sqlobject import *\n"
self.pythonOutput += "from datetime import datetime\n"
More information about the rhmessaging-commits
mailing list