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()
Show replies by date