commit-gnue
[Top][All Lists]
Advanced

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

[gnue] r8747 - trunk/gnue-forms/src/GFObjects


From: reinhard
Subject: [gnue] r8747 - trunk/gnue-forms/src/GFObjects
Date: Tue, 10 Oct 2006 17:53:55 -0500 (CDT)

Author: reinhard
Date: 2006-10-10 17:53:53 -0500 (Tue, 10 Oct 2006)
New Revision: 8747

Modified:
   trunk/gnue-forms/src/GFObjects/GFBlock.py
Log:
requery does a __switch_record anyway.


Modified: trunk/gnue-forms/src/GFObjects/GFBlock.py
===================================================================
--- trunk/gnue-forms/src/GFObjects/GFBlock.py   2006-10-10 22:41:09 UTC (rev 
8746)
+++ trunk/gnue-forms/src/GFObjects/GFBlock.py   2006-10-10 22:53:53 UTC (rev 
8747)
@@ -985,19 +985,15 @@
 
   def callFunction (self, name, parameters):
 
-    try:
-      # Remember the current record; the record pointer is not reliable between
-      # postAll and requeryAll!
-      current = self._resultSet.current
-      self._dataSourceLink.postAll ()
+    # Remember the current record; the record pointer is not reliable between
+    # postAll and requeryAll!
+    current = self._resultSet.current
+    self._dataSourceLink.postAll ()
 
-      try:
-        res = current.call (name, parameters)
-      finally:
-        self._dataSourceLink.requeryAll (False)
-
+    try:
+      res = current.call (name, parameters)
     finally:
-      self.__switch_record (0)
+      self._dataSourceLink.requeryAll (False)
 
     return res
 
@@ -1005,14 +1001,10 @@
 
   def updateCurrentRecordSet (self):
 
-    try:
-      self._dataSourceLink.postAll ()
-      self._dataSourceLink.requeryAll (False)
+    self._dataSourceLink.postAll ()
+    self._dataSourceLink.requeryAll (False)
 
-    finally:
-      self.__switch_record (0)
 
-
   # ---------------------------------------------------------------------------
   # Raw data access
   # ---------------------------------------------------------------------------





reply via email to

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