[SQL-CVS] r1335 - SQLObject/trunk/sqlobject
SQLObject is a Python ORM.
Brought to you by:
ianbicking,
phd
|
From: <sub...@co...> - 2005-12-04 21:49:19
|
Author: ianb
Date: 2005-12-04 21:49:08 +0000 (Sun, 04 Dec 2005)
New Revision: 1335
Modified:
SQLObject/trunk/sqlobject/cache.py
Log:
Missed return in tryGet
Modified: SQLObject/trunk/sqlobject/cache.py
===================================================================
--- SQLObject/trunk/sqlobject/cache.py 2005-12-04 01:10:26 UTC (rev 1334)
+++ SQLObject/trunk/sqlobject/cache.py 2005-12-04 21:49:08 UTC (rev 1335)
@@ -306,7 +306,7 @@
def tryGet(self, id, cls):
try:
- self.caches[cls.__name__].tryGet(id)
+ return self.caches[cls.__name__].tryGet(id)
except KeyError:
return None
|