Author: bugman Date: Tue Oct 13 19:07:23 2009 New Revision: 9758 URL: http://svn.gna.org/viewcvs/relax?rev=9758&view=rev Log: Modified add_citation() to return the citation ID number. Modified: branches/bmrb/data/exp_info.py Modified: branches/bmrb/data/exp_info.py URL: http://svn.gna.org/viewcvs/relax/branches/bmrb/data/exp_info.py?rev=9758&r1=9757&r2=9758&view=diff ============================================================================== --- branches/bmrb/data/exp_info.py (original) +++ branches/bmrb/data/exp_info.py Tue Oct 13 19:07:23 2009 @@ -74,6 +74,8 @@ @type page_last: int @keyword year: The publication year. @type year: int + @return: The citation ID number. + @rtype: int """ # Initialise the list container if needed. @@ -115,8 +117,8 @@ # Append the container. self.citations.append(cite) - # Return the index of this citation. - return len(self.citations) - 1 + # Return the citation ID. + return len(self.citations) def software_setup(self, name, version=None, url=None, vendor_name=None, cite=None, tasks=None):