mailr13318 - /branches/gui_testing/gui/analyses/__init__.py


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

Header


Content

Posted by edward on June 29, 2011 - 19:09:
Author: bugman
Date: Wed Jun 29 19:09:16 2011
New Revision: 13318

URL: http://svn.gna.org/viewcvs/relax?rev=13318&view=rev
Log:
The Analysis_controller class is now creating a container 'analyses' for the 
status object.

This will be for storing all the GUI analysis specific status info.


Modified:
    branches/gui_testing/gui/analyses/__init__.py

Modified: branches/gui_testing/gui/analyses/__init__.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/gui_testing/gui/analyses/__init__.py?rev=13318&r1=13317&r2=13318&view=diff
==============================================================================
--- branches/gui_testing/gui/analyses/__init__.py (original)
+++ branches/gui_testing/gui/analyses/__init__.py Wed Jun 29 19:09:16 2011
@@ -25,9 +25,12 @@
 
 # Python module imports.
 import wx
+from Queue import Queue
+from types import ListType
 
 # relax module imports.
 from data import Relax_data_store; ds = Relax_data_store()
+from status import Status; status = Status()
 
 # relax GUI module imports.
 from gui.analyses.auto_model_free import Auto_model_free
@@ -72,6 +75,9 @@
 
         # The analyses page objects.
         self._analyses = []
+
+        # Create a container in the status singleton for the analyses.
+        status.analyses = Status_container()
 
 
     def analysis_data_loop(self):
@@ -347,3 +353,14 @@
 
         # Open the window.
         self.results_viewer.Show()
+
+
+
+class Status_container(ListType):
+    """The status container object."""
+
+    def __init__(self):
+        """Initialise a number of data structures."""
+
+        # The exception queue.
+        self.exception_queue = Queue()




Related Messages


Powered by MHonArc, Updated Wed Jun 29 19:20:03 2011