From: <jb...@us...> - 2010-04-08 07:29:20
|
Revision: 550 http://pytrainer.svn.sourceforge.net/pytrainer/?rev=550&view=rev Author: jblance Date: 2010-04-08 07:29:13 +0000 (Thu, 08 Apr 2010) Log Message: ----------- Remove error on successful import as per David's suggestion Modified Paths: -------------- pytrainer/trunk/pytrainer/main.py pytrainer/trunk/pytrainer/record.py Modified: pytrainer/trunk/pytrainer/main.py =================================================================== --- pytrainer/trunk/pytrainer/main.py 2010-04-05 09:42:45 UTC (rev 549) +++ pytrainer/trunk/pytrainer/main.py 2010-04-08 07:29:13 UTC (rev 550) @@ -63,7 +63,7 @@ class pyTrainer: def __init__(self,filename = None, data_path = None): #Version constants - self.version ="1.7.1_svn#548" + self.version ="1.7.1_svn#550" self.DB_version = 3 #Setup usage and permitted options Modified: pytrainer/trunk/pytrainer/record.py =================================================================== --- pytrainer/trunk/pytrainer/record.py 2010-04-05 09:42:45 UTC (rev 549) +++ pytrainer/trunk/pytrainer/record.py 2010-04-08 07:29:13 UTC (rev 550) @@ -511,6 +511,7 @@ Add a record from a valid pytrainer type GPX file """ logging.debug('>>') + entry_id = None if not os.path.isfile(gpxFile): logging.error("Invalid file: " +gpxFile) else: @@ -523,8 +524,8 @@ logging.error("Entry not created for file %s" % gpxFile) else: logging.info("Entry %d has been added" % entry_id) - logging.debug('<<') + return entry_id #def importFromGTRNCTR(self,gtrnctrFile): #TODO remove """22.03.2008 - dgranda This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |