[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnue] r9071 - trunk/gnue-forms/src/input/displayHandlers
From: |
reinhard |
Subject: |
[gnue] r9071 - trunk/gnue-forms/src/input/displayHandlers |
Date: |
Mon, 27 Nov 2006 09:20:11 -0600 (CST) |
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
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [gnue] r9071 - trunk/gnue-forms/src/input/displayHandlers,
reinhard <=