mailr10452 - /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 27, 2010 - 20:11:
Author: bugman
Date: Wed Jan 27 20:11:08 2010
New Revision: 10452

URL: http://svn.gna.org/viewcvs/relax?rev=10452&view=rev
Log:
The ds.relax_gui structure is now being restored from XML and its from_xml() 
method called.


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=10452&r1=10451&r2=10452&view=diff
==============================================================================
--- branches/bieri_gui/data/__init__.py (original)
+++ branches/bieri_gui/data/__init__.py Wed Jan 27 20:11:08 2010
@@ -35,6 +35,7 @@
 # relax module imports.
 from pipe_container import PipeContainer
 import generic_fns
+from gui import Gui
 from relax_errors import RelaxError, RelaxPipeError, RelaxNoPipeError
 from relax_xml import fill_object_contents, xml_to_object
 from version import version
@@ -239,6 +240,15 @@
         # Get the relax version of the XML file.
         relax_version = str(relax_node.getAttribute('version'))
 
+        # Get the GUI nodes.
+        gui_nodes = relax_node.getElementsByTagName('relax_gui')
+        if gui_nodes:
+            # Create the GUI object.
+            self.relax_gui = Gui()
+
+            # Fill its contents.
+            self.relax_gui.from_xml(gui_nodes[0])
+
         # Get the pipe nodes.
         pipe_nodes = relax_node.getElementsByTagName('pipe')
 




Related Messages


Powered by MHonArc, Updated Wed Jan 27 20:40:02 2010