Author: justi9
Date: 2008-11-18 17:36:37 -0500 (Tue, 18 Nov 2008)
New Revision: 2839
Modified:
mgmt/trunk/mint/python/mint/update.py
Log:
An experimental change
Modified: mgmt/trunk/mint/python/mint/update.py
===================================================================
--- mgmt/trunk/mint/python/mint/update.py 2008-11-18 22:30:59 UTC (rev 2838)
+++ mgmt/trunk/mint/python/mint/update.py 2008-11-18 22:36:37 UTC (rev 2839)
@@ -261,7 +261,11 @@
conn = model.dbConn.getConnection()
cursor = conn.cursor()
subSql = model.generateSQLSelect(sqlCls, id)
- sql = model.generateSQLInsert(sqlStatsCls, attrs, {sqlCls + "_id":
subSql})
+
+ mintCls = getattr(mint, cls)
+ attrs[sqlCls + "_id"] = model.getObjectId(mintCls, id)
+ sql = model.generateSQLInsert(sqlStatsCls, attrs)
+
#log.debug("SQL: %s", sql)
cursor.execute(sql)