bzr revid: nicolas.vanhoren@openerp.com-20130605093915-kmwtw7cq578lb230
This commit is contained in:
niv-openerp 2013-06-05 11:39:15 +02:00
parent 7f44a2ea6e
commit 12e3ce123f
1 changed files with 1 additions and 1 deletions

View File

@ -366,7 +366,7 @@ class RequestProxy(object):
return delattr(_thlocal.stack[-1], name)
@classmethod
def set_request(cls, request):
class with_obj:
class with_obj(object):
def __enter__(self):
if getattr(_thlocal, "stack", None) is None:
_thlocal.stack = []