[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
r5081 - trunk/gnue-appserver/src/classrep
From: |
johannes |
Subject: |
r5081 - trunk/gnue-appserver/src/classrep |
Date: |
Mon, 9 Feb 2004 13:23:41 -0600 (CST) |
Author: johannes
Date: 2004-02-09 13:23:40 -0600 (Mon, 09 Feb 2004)
New Revision: 5081
Modified:
trunk/gnue-appserver/src/classrep/SchemaSupport.py
Log:
GSValue instances now have their field-property populated, so the
xslt-processor can create proper SQL.
Modified: trunk/gnue-appserver/src/classrep/SchemaSupport.py
===================================================================
--- trunk/gnue-appserver/src/classrep/SchemaSupport.py 2004-02-08 13:41:54 UTC
(rev 5080)
+++ trunk/gnue-appserver/src/classrep/SchemaSupport.py 2004-02-09 19:23:40 UTC
(rev 5081)
@@ -198,9 +198,9 @@
row = GSRow (modrows)
- self.__buildValue (row, mDef.gnue_comment)
- self.__buildValue (row, mDef.gnue_id)
- self.__buildValue (row, mDef.gnue_name)
+ self.__buildValue (row, "gnue_id", mDef.gnue_id)
+ self.__buildValue (row, "gnue_name", mDef.gnue_name)
+ self.__buildValue (row, "gnue_comment", mDef.gnue_comment)
# dump all gnue_class rows for the requested tables
tabledata = GSTableData (gsData)
@@ -220,30 +220,32 @@
# save tabledata
row = GSRow (tablerows)
- self.__buildValue (row, cDef.gnue_comment)
- self.__buildValue (row, cDef.gnue_id)
- self.__buildValue (row, cDef.gnue_module)
- self.__buildValue (row, cDef.gnue_name)
+ self.__buildValue (row, "gnue_id", cDef.gnue_id)
+ self.__buildValue (row, "gnue_module", cDef.gnue_module)
+ self.__buildValue (row, "gnue_name", cDef.gnue_name)
+ self.__buildValue (row, "gnue_comment", cDef.gnue_comment)
for cProp in cDef.properties.values ():
# add one field per property
row = GSRow (proprows)
- self.__buildValue (row, cProp.gnue_class)
- self.__buildValue (row, cProp.gnue_comment)
- self.__buildValue (row, cProp.gnue_id)
- self.__buildValue (row, int (cProp.gnue_length))
- self.__buildValue (row, cProp.gnue_module)
- self.__buildValue (row, cProp.gnue_name)
- self.__buildValue (row, int (cProp.gnue_scale))
- self.__buildValue (row, cProp.gnue_type)
+ self.__buildValue (row, "gnue_id" , cProp.gnue_id)
+ self.__buildValue (row, "gnue_module" , cProp.gnue_module)
+ self.__buildValue (row, "gnue_class" , cProp.gnue_class)
+ self.__buildValue (row, "gnue_name" , cProp.gnue_name)
+ self.__buildValue (row, "gnue_type" , cProp.gnue_type)
+ self.__buildValue (row, "gnue_length" , int (cProp.gnue_length))
+ self.__buildValue (row, "gnue_scale" , int (cProp.gnue_scale))
+ self.__buildValue (row, "gnue_comment", cProp.gnue_comment)
# ---------------------------------------------------------------------------
# Create a new field in a row and populate it with a value
# ---------------------------------------------------------------------------
- def __buildValue (self, row, data):
- GContent (GSValue (row), "'%s'" % data)
+ def __buildValue (self, row, column, data):
+ value = GSValue (row)
+ value.field = column
+ GContent (value, "'%s'" % data)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- r5081 - trunk/gnue-appserver/src/classrep,
johannes <=