Author: bugman
Date: Tue May 8 10:18:06 2012
New Revision: 16083
URL: http://svn.gna.org/viewcvs/relax?rev=16083&view=rev
Log:
The Sequence based wizard page GUI elements now return None if the field is
empty.
This was previously returning [] or () to the auto-generated user functions
when they were expecting
None.
Modified:
branches/uf_redesign/gui/wizard_elements.py
Modified: branches/uf_redesign/gui/wizard_elements.py
URL:
http://svn.gna.org/viewcvs/relax/branches/uf_redesign/gui/wizard_elements.py?rev=16083&r1=16082&r2=16083&view=diff
==============================================================================
--- branches/uf_redesign/gui/wizard_elements.py (original)
+++ branches/uf_redesign/gui/wizard_elements.py Tue May 8 10:18:06 2012
@@ -225,6 +225,10 @@
elif self.seq_type == 'tuple' and not isinstance(value, tuple):
value = (value,)
+ # Handle empty values.
+ if len(value) == 0:
+ return None
+
# Return the value.
return value
_______________________________________________
relax (http://www.nmr-relax.com)
This is the relax-commits mailing list
[email protected]
To unsubscribe from this list, get a password
reminder, or change your subscription options,
visit the list information page at
https://mail.gna.org/listinfo/relax-commits