Fix Cache to use the local thread context

This commit is contained in:
Cédric Krier committed 2012-12-11 22:57:04 +01:00
1 parent eb820df535
commit d6b453a516
1 file changed
+1 -1
+1 -1
View File
@@ -27,7 +27,7 @@ class Cache(object):
def _key(self, key):
if self.context:
return (key, Transaction().user, repr(Transaction.context))
return (key, Transaction().user, repr(Transaction().context))
return key
def get(self, key, default=None):