commit-gnue
[Top][All Lists]
Advanced

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

[gnue] r7244 - trunk/gnue-common/src/datasources/drivers/Base


From: reinhard
Subject: [gnue] r7244 - trunk/gnue-common/src/datasources/drivers/Base
Date: Mon, 21 Mar 2005 11:21:02 -0600 (CST)

Author: reinhard
Date: 2005-03-21 11:21:01 -0600 (Mon, 21 Mar 2005)
New Revision: 7244

Modified:
   trunk/gnue-common/src/datasources/drivers/Base/RecordSet.py
Log:
Requerying a primary key without rowid doesn't work.


Modified: trunk/gnue-common/src/datasources/drivers/Base/RecordSet.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/Base/RecordSet.py 2005-03-21 
17:17:07 UTC (rev 7243)
+++ trunk/gnue-common/src/datasources/drivers/Base/RecordSet.py 2005-03-21 
17:21:01 UTC (rev 7244)
@@ -310,7 +310,7 @@
     result = {}
 
     # First priority: row id
-    if self._initialData.has_key (self.__rowidField):
+    if self.__rowidField:
       result [self.__rowidField] = self._initialData [self.__rowidField]
 
     # Second priority: primary key
@@ -415,7 +415,8 @@
       # the commit, as the detail posts and the commit could change stuff, too.
       # FIXME: actually, we wouldn't have to requery the complete record, but
       # only the fields used as masterfields for any of the details.
-      self.__requery ()
+      if self.__rowidField:
+        self.__requery ()
 
       for child in (self._cachedDetailResultSets.values ()):
         do = child._dataObject





reply via email to

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