Author: bugman Date: Fri Jul 4 01:15:39 2008 New Revision: 6649 URL: http://svn.gna.org/viewcvs/relax?rev=6649&view=rev Log: Bug fix for the SpinList.to_xml() method. The return_data_desc() function is only called if it exists. Modified: 1.3/data/mol_res_spin.py Modified: 1.3/data/mol_res_spin.py URL: http://svn.gna.org/viewcvs/relax/1.3/data/mol_res_spin.py?rev=6649&r1=6648&r2=6649&view=diff ============================================================================== --- 1.3/data/mol_res_spin.py (original) +++ 1.3/data/mol_res_spin.py Fri Jul 4 01:15:39 2008 @@ -239,7 +239,10 @@ if data_names: for name in data_names(error_names=True, sim_names=True): # Get the description. - desc = return_data_desc(name, spin=self[i]) + if return_data_desc: + desc = return_data_desc(name, spin=self[i]) + else: + desc = None # Append the two. object_info.append([name, desc])