Author: bugman Date: Wed Jan 27 14:17:42 2010 New Revision: 10437 URL: http://svn.gna.org/viewcvs/relax?rev=10437&view=rev Log: The Analyses.add() method now returns the appended data container. This allows the GUI module generating this to alias the container easily. Modified: branches/bieri_gui/data/gui.py Modified: branches/bieri_gui/data/gui.py URL: http://svn.gna.org/viewcvs/relax/branches/bieri_gui/data/gui.py?rev=10437&r1=10436&r2=10437&view=diff ============================================================================== --- branches/bieri_gui/data/gui.py (original) +++ branches/bieri_gui/data/gui.py Wed Jan 27 14:17:42 2010 @@ -64,6 +64,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 """ # Append an empty element. @@ -71,3 +73,6 @@ # Set the analysis type. self[-1].analysis_type = type + + # Return the container. + return self[-1]