commit-gnue
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gnue] r7190 - trunk/gnue-common/src/datasources


From: reinhard
Subject: [gnue] r7190 - trunk/gnue-common/src/datasources
Date: Sat, 12 Mar 2005 07:45:47 -0600 (CST)

Author: reinhard
Date: 2005-03-12 07:45:46 -0600 (Sat, 12 Mar 2005)
New Revision: 7190

Modified:
   trunk/gnue-common/src/datasources/GDataSource.py
Log:
Make sure the primary key is included in the list of referenced fields,
otherwise it won't be of much help :-)


Modified: trunk/gnue-common/src/datasources/GDataSource.py
===================================================================
--- trunk/gnue-common/src/datasources/GDataSource.py    2005-03-12 11:58:29 UTC 
(rev 7189)
+++ trunk/gnue-common/src/datasources/GDataSource.py    2005-03-12 13:45:46 UTC 
(rev 7190)
@@ -274,6 +274,10 @@
     except AttributeError:
       pass
 
+    # Make sure the primary key is included in the field references
+    if dataObject._primaryIdField:
+      self._fieldReferences [dataObject._primaryIdField] = True
+
     hasRaw = False
     for child in self._children:
       if isinstance(child, GConditions.GCondition):





reply via email to

[Prev in Thread] Current Thread [Next in Thread]