Author: reinhard
Date: 2006-11-27 09:20:10 -0600 (Mon, 27 Nov 2006)
New Revision: 9071

Modified:
   trunk/gnue-forms/src/input/displayHandlers/Cursor.py
Log:
Don't fire the same POST-CHANGE trigger on selection of a dropdown item *and*
on focus-out of the dropdown.

issue115 testing


Modified: trunk/gnue-forms/src/input/displayHandlers/Cursor.py
===================================================================
--- trunk/gnue-forms/src/input/displayHandlers/Cursor.py        2006-11-27 
12:49:52 UTC (rev 9070)
+++ trunk/gnue-forms/src/input/displayHandlers/Cursor.py        2006-11-27 
15:20:10 UTC (rev 9071)
@@ -322,8 +322,12 @@
     # Update the field. This means PRE-CHANGE and POST-CHANGE will get fired
     # now. For now, only do this here if we are a lookup.
     if hasattr(self.field, 'fk_source'):
-      self._buildValue()
-      self.field.setValue(self.value)
+        try:
+            self.__updateFieldValue()
+            self.modified = False
+        except Exception:
+            # We don't care about exceptions now, the user can still correct
+            pass
 
   # -------------------------------------------------------------------------
   # Replac the current contents



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

Reply via email to