mailr13781 - /branches/gui_testing/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 20, 2011 - 15:59:
Author: bugman
Date: Wed Jul 20 15:59:31 2011
New Revision: 13781

URL: http://svn.gna.org/viewcvs/relax?rev=13781&view=rev
Log:
The switch to a new pipe as it is created is now signalled to the observer 
object.

The data store add() method, when switching to the new pipe now signals 
status.observers.pipe_switch
that a switch occurred.


Modified:
    branches/gui_testing/data/__init__.py

Modified: branches/gui_testing/data/__init__.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/gui_testing/data/__init__.py?rev=13781&r1=13780&r2=13781&view=diff
==============================================================================
--- branches/gui_testing/data/__init__.py (original)
+++ branches/gui_testing/data/__init__.py Wed Jul 20 15:59:31 2011
@@ -38,6 +38,7 @@
 from gui import Gui
 from relax_errors import RelaxError, RelaxPipeError, RelaxNoPipeError
 from relax_xml import fill_object_contents, xml_to_object
+from status import Status; status = Status()
 from version import version
 
 
@@ -171,8 +172,12 @@
 
         # Change the current data pipe.
         if switch:
+            # Set the current data pipe.
             self.instance.current_pipe = pipe_name
             __builtin__.cdp = self[pipe_name]
+
+            # Signal the switch.
+            status.observers.pipe_switch.notify()
 
 
     def is_empty(self):




Related Messages


Powered by MHonArc, Updated Wed Jul 20 16:20:03 2011