[rhmessaging-commits] rhmessaging commits: r1351 - mgmt/mint.

rhmessaging-commits at lists.jboss.org rhmessaging-commits at lists.jboss.org
Wed Nov 21 11:08:05 EST 2007


Author: nunofsantos
Date: 2007-11-21 11:08:04 -0500 (Wed, 21 Nov 2007)
New Revision: 1351

Modified:
   mgmt/mint/schemaparser.py
Log:
revert back to including connection settings in parser

Modified: mgmt/mint/schemaparser.py
===================================================================
--- mgmt/mint/schemaparser.py	2007-11-21 15:21:06 UTC (rev 1350)
+++ mgmt/mint/schemaparser.py	2007-11-21 16:08:04 UTC (rev 1351)
@@ -14,6 +14,8 @@
     self.currentClass = ""
     self.final = "\nclassToSchemaNameMap = dict()\n"
     self.final += "schemaNameToClassMap = dict()\n"
+    self.pythonOutput += "conn = connectionForURI(\"%s\")\n" % (self.options["dsn"])
+    self.pythonOutput += "sqlhub.processConnection = conn\n\n"
     # mapping between xml schema types and database column types
     # see xml/MintTypes.xml
     self.dataTypesMap = dict()




More information about the rhmessaging-commits mailing list