mailr8527 - /branches/multi_structure/generic_fns/structure/api_base.py


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by edward on January 19, 2009 - 14:31:
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)




Related Messages


Powered by MHonArc, Updated Mon Jan 19 14:40:02 2009