mailr10406 - /branches/bieri_gui/data/__init__.py


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by edward on January 26, 2010 - 18:52:
Author: bugman
Date: Tue Jan 26 18:52:38 2010
New Revision: 10406

URL: http://svn.gna.org/viewcvs/relax?rev=10406&view=rev
Log:
The objects in the base of the relax data store are now being sent into the 
XML save state.


Modified:
    branches/bieri_gui/data/__init__.py

Modified: branches/bieri_gui/data/__init__.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/bieri_gui/data/__init__.py?rev=10406&r1=10405&r2=10406&view=diff
==============================================================================
--- branches/bieri_gui/data/__init__.py (original)
+++ branches/bieri_gui/data/__init__.py Tue Jan 26 18:52:38 2010
@@ -36,6 +36,7 @@
 from pipe_container import PipeContainer
 import generic_fns
 from relax_errors import RelaxError, RelaxPipeError, RelaxNoPipeError
+from relax_xml import fill_object_contents, xml_to_object
 from version import version
 
 
@@ -327,6 +328,9 @@
         top_element.setAttribute('version', version)
         top_element.setAttribute('time', asctime())
 
+        # Add all simple objects in the data store base object to the XML 
element.
+        fill_object_contents(xmldoc, top_element, object=self, 
blacklist=['relax_gui'] + list(self.__class__.__dict__.keys() + 
dict.__dict__.keys()))
+
         # Loop over the pipes.
         for pipe in pipes:
             # Create the pipe XML element and add it to the top level XML 
element.




Related Messages


Powered by MHonArc, Updated Tue Jan 26 19:20:02 2010