From: <dg...@us...> - 2009-12-26 15:06:44
|
Revision: 444 http://pytrainer.svn.sourceforge.net/pytrainer/?rev=444&view=rev Author: dgranda Date: 2009-12-26 15:06:35 +0000 (Sat, 26 Dec 2009) Log Message: ----------- Changed link to python list for explanation on how to compare lists Modified Paths: -------------- pytrainer/trunk/pytrainer/lib/sqliteUtils.py pytrainer/trunk/pytrainer/profile.py pytrainer/trunk/pytrainer/record.py Modified: pytrainer/trunk/pytrainer/lib/sqliteUtils.py =================================================================== --- pytrainer/trunk/pytrainer/lib/sqliteUtils.py 2009-12-26 10:14:10 UTC (rev 443) +++ pytrainer/trunk/pytrainer/lib/sqliteUtils.py 2009-12-26 15:06:35 UTC (rev 444) @@ -223,7 +223,7 @@ columnsDB.update(newField) logging.debug('Useful data retrieved from '+str(tableName)+' in DB: '+str(columnsDB)) - # http://mail.python.org/pipermail/python-list/2002-May/142854.html - not correct URL.... + # http://mail.python.org/pipermail/python-list/2002-May/141458.html #tempDict = dict(zip(columns,columns)) tempDict = dict(columns) #Test for columns that are in DB that shouldn't be Modified: pytrainer/trunk/pytrainer/profile.py =================================================================== --- pytrainer/trunk/pytrainer/profile.py 2009-12-26 10:14:10 UTC (rev 443) +++ pytrainer/trunk/pytrainer/profile.py 2009-12-26 15:06:35 UTC (rev 444) @@ -114,7 +114,7 @@ logging.debug("Default values: "+ str(defaultList)) #logging.debug("Default keys: "+ str(defaultListKeys)) # Comparing fields - # http://mail.python.org/pipermail/python-list/2002-May/142854.html + # http://mail.python.org/pipermail/python-list/2002-May/141458.html tempDict = dict(zip(currentListKeys,currentListKeys)) resultList = [x for x in defaultListKeys if x not in tempDict] logging.info('Fields to be added: '+str(resultList)) Modified: pytrainer/trunk/pytrainer/record.py =================================================================== --- pytrainer/trunk/pytrainer/record.py 2009-12-26 10:14:10 UTC (rev 443) +++ pytrainer/trunk/pytrainer/record.py 2009-12-26 15:06:35 UTC (rev 444) @@ -526,7 +526,7 @@ def compareLists(self,list1,list2): # Optimizing comparison - 26042008 - # http://mail.python.org/pipermail/python-list/2002-May/142854.html + # http://mail.python.org/pipermail/python-list/2002-May/141458.html tempDict = dict(zip(list1,list1)) return [x for x in list2 if x not in tempDict] This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |