mailr8605 - /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 22, 2009 - 16:48:
Author: bugman
Date: Thu Jan 22 16:48:07 2009
New Revision: 8605

URL: http://svn.gna.org/viewcvs/relax?rev=8605&view=rev
Log:
MolList.from_xml() now calls MolContainer.from_xml().

This will allow the different structural objects to set themselves up as 
appropriate.


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=8605&r1=8604&r2=8605&view=diff
==============================================================================
--- branches/multi_structure/generic_fns/structure/api_base.py (original)
+++ branches/multi_structure/generic_fns/structure/api_base.py Thu Jan 22 
16:48:07 2009
@@ -970,8 +970,8 @@
                 name = None
             self.add_item(mol_name=name)
 
-            # Recreate the molecule data structures for the current molecule.
-            self[-1].mol.from_xml(mol_nodes)
+            # Execute the specific MolContainer from_xml() method.
+            self[-1].mol[-1].from_xml(mol_node)
 
 
     def to_xml(self, doc, element):




Related Messages


Powered by MHonArc, Updated Thu Jan 22 17:00:05 2009