Author: bugman
Date: Mon Jan 19 14:31:07 2009
New Revision: 8527

URL: http://svn.gna.org/viewcvs/relax?rev=8527&view=rev
Log:
Bug fix for the MolList.to_xml() method.

The molecule container data was been added by this method and then the 
MolContainer.to_xml() method
a second time!


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=8527&r1=8526&r2=8527&view=diff
==============================================================================
--- branches/multi_structure/generic_fns/structure/api_base.py (original)
+++ branches/multi_structure/generic_fns/structure/api_base.py Mon Jan 19 
14:31:07 2009
@@ -1001,16 +1001,5 @@
 
         # Loop over the molecules.
         for i in xrange(len(self)):
-            # Create an XML element for this molecule and add it to the higher 
level element.
-            mol_element = doc.createElement('mol')
-            element.appendChild(mol_element)
-
-            # Set the molecule attributes.
-            mol_element.setAttribute('desc', 'Molecule container')
-            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].to_xml(doc, mol_element)
+            self[i].to_xml(doc, element)


_______________________________________________
relax (http://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