mailr14037 - /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 August 01, 2011 - 17:06:
Author: bugman
Date: Mon Aug  1 17:06:16 2011
New Revision: 14037

URL: http://svn.gna.org/viewcvs/relax?rev=14037&view=rev
Log:
Added the GUI analysis current_data() method for returning the data store 
container.


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=14037&r1=14036&r2=14037&view=diff
==============================================================================
--- branches/gui_testing/gui/analyses/__init__.py (original)
+++ branches/gui_testing/gui/analyses/__init__.py Mon Aug  1 17:06:16 2011
@@ -113,6 +113,21 @@
             yield self._analyses[i]
 
 
+    def current_data(self):
+        """Return the data container of the current analysis from the relax 
data store.
+
+        @return:    The data container of the current analysis.
+        @rtype:     str
+        """
+
+        # No current page.
+        if self._current == None:
+            return
+
+        # Return the name.
+        return ds.relax_gui.analyses[self._current]
+
+
     def current_analysis_name(self):
         """Return the name of the current analysis.
 




Related Messages


Powered by MHonArc, Updated Mon Aug 01 17:20:02 2011