Author: bugman Date: Mon Jan 19 13:40:26 2009 New Revision: 8522 URL: http://svn.gna.org/viewcvs/relax?rev=8522&view=rev Log: Fix for the MolList.to_xml() method. The MolContainer.to_xml() method is now properly called. Modified: branches/multi_structure/generic_fns/structure/api_base.py Modified: branches/multi_structure/generic_fns/structure/api_base.py URL: http://svn.gna.org/viewcvs/relax/branches/multi_structure/generic_fns/structure/api_base.py?rev=8522&r1=8521&r2=8522&view=diff ============================================================================== --- branches/multi_structure/generic_fns/structure/api_base.py (original) +++ branches/multi_structure/generic_fns/structure/api_base.py Mon Jan 19 13:40:26 2009 @@ -1006,10 +1006,10 @@ # Set the molecule attributes. mol_element.setAttribute('desc', 'Molecule container') - mol_element.setAttribute('name', str(self[i].name)) + mol_element.setAttribute('name', str(self[i].mol_name)) # Add all simple python objects within the MolContainer to the XML element. fill_object_contents(doc, mol_element, object=self[i], blacklist=['name'] + self[i].__class__.__dict__.keys()) # Add the molecule data. - self[i].mol.to_xml(doc, mol_element) + self[i].to_xml(doc, mol_element)