mailr13632 - /1.3/data/__init__.py


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

Header


Content

Posted by edward on July 14, 2011 - 20:09:
Author: bugman
Date: Thu Jul 14 20:09:47 2011
New Revision: 13632

URL: http://svn.gna.org/viewcvs/relax?rev=13632&view=rev
Log:
Fix for the loading of saved state files prior to r13631 - the cdp is now set 
to the last pipe.

The earlier saved state files did not store the current data pipe info, so 
the current data pipe was
set by default to the last data pipe.  This behaviour was broken with r13631 
but is now restored for
the old state files.


Modified:
    1.3/data/__init__.py

Modified: 1.3/data/__init__.py
URL: 
http://svn.gna.org/viewcvs/relax/1.3/data/__init__.py?rev=13632&r1=13631&r2=13632&view=diff
==============================================================================
--- 1.3/data/__init__.py (original)
+++ 1.3/data/__init__.py Thu Jul 14 20:09:47 2011
@@ -305,7 +305,10 @@
                 pipe_type = pipe_node.getAttribute('type')
 
                 # Add the data pipe.
-                self.add(pipe_name, pipe_type, switch=False)
+                switch = False
+                if self.current_pipe == None:
+                    switch = True
+                self.add(pipe_name, pipe_type, switch=switch)
 
                 # Fill the pipe.
                 self[pipe_name].from_xml(pipe_node, 
file_version=file_version, dir=dir)




Related Messages


Powered by MHonArc, Updated Fri Jul 15 09:40:02 2011