mailr16798 - /branches/uf_redesign/gui/input_elements/combo_list.py


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by edward on June 08, 2012 - 21:16:
Author: bugman
Date: Fri Jun  8 21:16:57 2012
New Revision: 16798

URL: http://svn.gna.org/viewcvs/relax?rev=16798&view=rev
Log:
Bug fix for the SetValue() method of the Combo_list GUI input element 
matching the fix of r16695.

If the value is None, this no longer fails for read only combo boxes.


Modified:
    branches/uf_redesign/gui/input_elements/combo_list.py

Modified: branches/uf_redesign/gui/input_elements/combo_list.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/uf_redesign/gui/input_elements/combo_list.py?rev=16798&r1=16797&r2=16798&view=diff
==============================================================================
--- branches/uf_redesign/gui/input_elements/combo_list.py (original)
+++ branches/uf_redesign/gui/input_elements/combo_list.py Fri Jun  8 21:16:57 
2012
@@ -334,7 +334,8 @@
             if not found:
                 # Invalid value.
                 if self._read_only:
-                    raise RelaxError("The Value element is read only, cannot 
set the value '%s'." % value)
+                    if value != None:
+                        raise RelaxError("The Value element is read only, 
cannot set the value '%s'." % value)
 
                 # Set the unknown value, and remove the selection.
                 else:




Related Messages


Powered by MHonArc, Updated Fri Jun 08 21:40:02 2012