mailr8606 - /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:49:
Author: bugman
Date: Thu Jan 22 16:49:09 2009
New Revision: 8606

URL: http://svn.gna.org/viewcvs/relax?rev=8606&view=rev
Log:
Bug fix for MolList.from_xml().  The molecule name is no longer passed into 
eval().


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=8606&r1=8605&r2=8606&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:49:09 2009
@@ -965,7 +965,7 @@
         # Loop over the molecules.
         for mol_node in mol_nodes:
             # Get the molecule details and add the molecule to the MolList 
structure.
-            name = eval(mol_node.getAttribute('name'))
+            name = mol_node.getAttribute('name')
             if name == 'None':
                 name = None
             self.add_item(mol_name=name)




Related Messages


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