Author: reinhard
Date: 2007-03-31 17:51:51 -0500 (Sat, 31 Mar 2007)
New Revision: 9459

Modified:
   trunk/gnue-forms/src/GFObjects/GFBlock.py
Log:
Fixes for new GFBlock.search_record() function.


Modified: trunk/gnue-forms/src/GFObjects/GFBlock.py
===================================================================
--- trunk/gnue-forms/src/GFObjects/GFBlock.py   2007-03-31 21:22:13 UTC (rev 
9458)
+++ trunk/gnue-forms/src/GFObjects/GFBlock.py   2007-03-31 22:51:51 UTC (rev 
9459)
@@ -829,6 +829,8 @@
         @returns: True if a record was found, False otherwise.
         """
 
+        if self.mode == 'query':
+            return
 
         # First, convert the fieldname/value pairs to column/value pairs.
         cond = {}
@@ -836,9 +838,13 @@
             field = self._fieldMap[fieldname]
             cond[field.field] = field.reverse_lookup(value)
 
+        self._focus_out()
+
         self.__resultset.findRecord(cond)
 
+        self._focus_in()
 
+
     # -------------------------------------------------------------------------
     # Status information
     # -------------------------------------------------------------------------



_______________________________________________
commit-gnue mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/commit-gnue

Reply via email to