mailr8521 - /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 - 13:38:
Author: bugman
Date: Mon Jan 19 13:38:42 2009
New Revision: 8521

URL: http://svn.gna.org/viewcvs/relax?rev=8521&view=rev
Log:
Fixes for the Base_struct_API.to_xml() method.

There are no structures to pack up, so only call the ModelList.to_xml() 
method.


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=8521&r1=8520&r2=8521&view=diff
==============================================================================
--- branches/multi_structure/generic_fns/structure/api_base.py (original)
+++ branches/multi_structure/generic_fns/structure/api_base.py Mon Jan 19 
13:38:42 2009
@@ -440,18 +440,8 @@
         str_element.setAttribute('desc', 'Structural information')
         str_element.setAttribute('id', self.id)
 
-        # Blacklist methods.
-        blacklist = []
-        for name in dir(self):
-            # Get the object.
-            obj = getattr(self, name)
-
-            # Add methods to the list.
-            if isinstance(obj, MethodType):
-                blacklist.append(name)
-
-        # Add all simple python objects within the PipeContainer to the pipe 
element.
-        fill_object_contents(doc, str_element, object=self, 
blacklist=blacklist + ['structural_data'] + self.__class__.__dict__.keys())
+        # No contents to store, so pack up the structural containers.
+        self.structural_data.to_xml(doc, element)
 
 
     def write_pdb(self, file, struct_index=None):




Related Messages


Powered by MHonArc, Updated Mon Jan 19 14:00:04 2009