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

[email protected]
Newsgroups gmane.comp.cms.gnue.cvs
Message-ID <[email protected]>
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)
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.