[SQL-CVS] r1770 - SQLObject/branches/0.7-bugfix/sqlobject
SQLObject is a Python ORM.
Brought to you by:
ianbicking,
phd
|
From: <sub...@co...> - 2006-05-17 16:08:25
|
Author: phd
Date: 2006-05-17 10:08:18 -0600 (Wed, 17 May 2006)
New Revision: 1770
Modified:
SQLObject/branches/0.7-bugfix/sqlobject/cache.py
Log:
Merged a small part of the cull patch from the trunk.
Modified: SQLObject/branches/0.7-bugfix/sqlobject/cache.py
===================================================================
--- SQLObject/branches/0.7-bugfix/sqlobject/cache.py 2006-05-17 14:14:28 UTC (rev 1769)
+++ SQLObject/branches/0.7-bugfix/sqlobject/cache.py 2006-05-17 16:08:18 UTC (rev 1770)
@@ -97,7 +97,8 @@
# method has a lock, so it's threadsafe.
self.cullCount = 0
self.cull()
-
+ else:
+ self.cullCount += 1
try:
return self.cache[id]
except KeyError:
|