Author: bugman Date: Fri Jun 7 15:46:37 2013 New Revision: 19947 URL: http://svn.gna.org/viewcvs/relax?rev=19947&view=rev Log: Bug fix for the Sequence GUI input element. This complete the removal of bug #20873 (https://gna.org/bugs/?20873). The problem was that the gui_to_str() function was not failing to convert the string into a string list, so the list was deemed as a single string. Now the first character of '[' or '(' for lists or tuples are now searched for instead of relying on the conversion to trigger an error. Modified: trunk/gui/input_elements/sequence.py Modified: trunk/gui/input_elements/sequence.py URL: http://svn.gna.org/viewcvs/relax/trunk/gui/input_elements/sequence.py?rev=19947&r1=19946&r2=19947&view=diff ============================================================================== --- trunk/gui/input_elements/sequence.py (original) +++ trunk/gui/input_elements/sequence.py Fri Jun 7 15:46:37 2013 @@ -263,7 +263,9 @@ if isinstance(value, int): value_set = True elif self.value_type == 'str': - if isinstance(value, str): + if self.seq_type == 'list' and value[0] != '[': + value_set = True + elif self.seq_type == 'tuple' and value[0] != '(': value_set = True except: pass