commit-gnue
[Top][All Lists]
Advanced

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

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


From: reinhard
Subject: [gnue] r7944 - trunk/gnue-common/src/datasources/drivers/Base
Date: Wed, 28 Sep 2005 12:35:29 -0500 (CDT)

Author: reinhard
Date: 2005-09-21 08:20:53 -0500 (Wed, 21 Sep 2005)
New Revision: 7944

Modified:
   trunk/gnue-common/src/datasources/drivers/Base/ResultSet.py
Log:
If the cursor navigates out of an empty record, throw it away.


Modified: trunk/gnue-common/src/datasources/drivers/Base/ResultSet.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/Base/ResultSet.py 2005-09-21 
13:06:48 UTC (rev 7943)
+++ trunk/gnue-common/src/datasources/drivers/Base/ResultSet.py 2005-09-21 
13:20:53 UTC (rev 7944)
@@ -798,6 +798,9 @@
     # non-changing records after requery or merge) to a new current record,
     # bring all detail records in sync.
     if self.current and self.current != oldCurrent:
+      # If the cursor moved out of an empty record, throw it away.
+      if oldCurrent and oldCurrent.isEmpty ():
+        self.__removeRecord (self.__cachedRecords.index (oldCurrent))
       self.current._activate ()
 
     if self.__eventController is not None:





reply via email to

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