mailr8618 - /branches/multi_structure/generic_fns/structure/scientific.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 - 18:08:
Author: bugman
Date: Thu Jan 22 18:08:22 2009
New Revision: 8618

URL: http://svn.gna.org/viewcvs/relax?rev=8618&view=rev
Log:
Added an incomplete MolContainer.from_xml() method.


Modified:
    branches/multi_structure/generic_fns/structure/scientific.py

Modified: branches/multi_structure/generic_fns/structure/scientific.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/multi_structure/generic_fns/structure/scientific.py?rev=8618&r1=8617&r2=8618&view=diff
==============================================================================
--- branches/multi_structure/generic_fns/structure/scientific.py (original)
+++ branches/multi_structure/generic_fns/structure/scientific.py Thu Jan 22 
18:08:22 2009
@@ -613,6 +613,17 @@
     """The empty list-type container for the non-protein and non-RNA 
molecular information."""
 
 
+    def from_xml(self, mol_node):
+        """Recreate the MolContainer from the XML molecule node.
+
+        @param mol_node:    The molecule XML node.
+        @type mol_node:     xml.dom.minicompat.NodeList instance
+        """
+
+        # Recreate the current molecule container.
+        xml_to_object(mol_node, self)
+
+
     def to_xml(self, doc, element):
         """Create XML elements for the contents of this molecule container.
 




Related Messages


Powered by MHonArc, Updated Thu Jan 22 18:20:03 2009