Author: bugman Date: Wed Jun 15 18:19:55 2011 New Revision: 13052 URL: http://svn.gna.org/viewcvs/relax?rev=13052&view=rev Log: The add() method of the GUI analysis part of the relax data store now returns the index. This is rather than the data container itself. Modified: branches/gui_testing/data/gui.py Modified: branches/gui_testing/data/gui.py URL: http://svn.gna.org/viewcvs/relax/branches/gui_testing/data/gui.py?rev=13052&r1=13051&r2=13052&view=diff ============================================================================== --- branches/gui_testing/data/gui.py (original) +++ branches/gui_testing/data/gui.py Wed Jun 15 18:19:55 2011 @@ -92,8 +92,8 @@ @keyword type: The analysis type. This can be currently one of 'noe', 'r1', 'r2', or 'model-free'. @type type: str - @return: The data container added to the list. - @rtype: Element instance + @return: The index of the data container added to the list. + @rtype: int """ # Append an empty element. @@ -102,8 +102,8 @@ # Set the analysis type. self[-1].analysis_type = type - # Return the container. - return self[-1] + # Return the index of the container. + return len(self-1) def from_xml(self, analyses_node):