X-Git-Url: https://git.openstreetmap.org./osqa.git/blobdiff_plain/886fb5136dfb9ff258b8948c981a68bbf3550208..9417d3254858438fe5fa59160bfd9edef1332c90:/forum/__init__.py diff --git a/forum/__init__.py b/forum/__init__.py index e69de29..fa60dba 100644 --- a/forum/__init__.py +++ b/forum/__init__.py @@ -0,0 +1,15 @@ +import threading + + +class RequestHolder(object): + _requests = threading.local() + + @property + def request(self): + return self._requests.request + + @request.setter + def request(self, value): + self._requests.request = value + +REQUEST_HOLDER = RequestHolder()