comparison roundup/backends/rdbms_common.py @ 4085:04843a029ea1

Fix some broken logging. Remove (broken and incorrect) optimisation added to set_inner multilink handling.
author Richard Jones <richard@users.sourceforge.net>
date Tue, 10 Mar 2009 01:08:45 +0000
parents e039f3cbbb96
children 01eb89b07c13
comparison
equal deleted inserted replaced
4084:35d2976cb4ba 4085:04843a029ea1
1738 l.remove(id) 1738 l.remove(id)
1739 remove.append(id) 1739 remove.append(id)
1740 1740
1741 # handle additions 1741 # handle additions
1742 for id in value: 1742 for id in value:
1743 # If this node is in the cache, then we do not need to go to
1744 # the database. (We don't consider this an LRU hit, though.)
1745 if self.cache.has_key((classname, nodeid)):
1746 # Return 1, not True, to match the type of the result of
1747 # the SQL operation below.
1748 return 1
1749 if not self.db.getclass(link_class).hasnode(id): 1743 if not self.db.getclass(link_class).hasnode(id):
1750 raise IndexError, '%s has no node %s'%(link_class, id) 1744 raise IndexError, '%s has no node %s'%(link_class, id)
1751 if id in l: 1745 if id in l:
1752 continue 1746 continue
1753 # register the link with the newly linked node 1747 # register the link with the newly linked node

Roundup Issue Tracker: http://roundup-tracker.org/