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):
_______________________________________________
relax (http://nmr-relax.com)
This is the relax-commits mailing list
[email protected]
To unsubscribe from this list, get a password
reminder, or change your subscription options,
visit the list information page at
https://mail.gna.org/listinfo/relax-commits