Author: reinhard
Date: 2007-04-11 09:14:41 -0500 (Wed, 11 Apr 2007)
New Revision: 9492

Modified:
   trunk/gnue-forms/src/GFObjects/GFTabStop.py
Log:
Fix for two dropdowns bound to same field, and invalid value entered in one of
them.


Modified: trunk/gnue-forms/src/GFObjects/GFTabStop.py
===================================================================
--- trunk/gnue-forms/src/GFObjects/GFTabStop.py 2007-04-11 13:48:05 UTC (rev 
9491)
+++ trunk/gnue-forms/src/GFObjects/GFTabStop.py 2007-04-11 14:14:41 UTC (rev 
9492)
@@ -510,7 +510,10 @@
             # Do not execute if we were editing - would overwrite unsaved 
change
             if not (index == self._visibleIndex \
                     and self._displayHandler.editing):
-                value = self._field.get_value(index - self._visibleIndex)
+                try:
+                    value = self._field.get_value(index - self._visibleIndex)
+                except Exception:               # invalid value
+                    value = None
                 display = self._displayHandler.build_display(value, False)
                 self.uiWidget._ui_set_value_(index, display)
 



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

Reply via email to