Author: bugman
Date: Sun May  6 18:34:37 2012
New Revision: 16023

URL: http://svn.gna.org/viewcvs/relax?rev=16023&view=rev
Log:
Fix for the Uf_page.on_display() method for choice iterators which return 
strings.

Strings are a sequence type, so len() is not a valid test!


Modified:
    branches/uf_redesign/gui/uf_objects.py

Modified: branches/uf_redesign/gui/uf_objects.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/uf_redesign/gui/uf_objects.py?rev=16023&r1=16022&r2=16023&view=diff
==============================================================================
--- branches/uf_redesign/gui/uf_objects.py (original)
+++ branches/uf_redesign/gui/uf_objects.py Sun May  6 18:34:37 2012
@@ -376,7 +376,7 @@
             choices = []
             data = []
             for vals in iterator():
-                if len(vals) == 2:
+                if not isinstance(vals, str) and len(vals) == 2:
                     choices.append(vals[0])
                     data.append(vals[1])
                 else:


_______________________________________________
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

Reply via email to