X-Git-Url: https://git.openstreetmap.org./osqa.git/blobdiff_plain/87e592dc4c9e0321635350da8c9f1624554a604f..1157280cd8ff44da57a37dfc2f5920e53180f6b4:/forum/__init__.py?ds=inline diff --git a/forum/__init__.py b/forum/__init__.py index 8b13789..fa60dba 100644 --- a/forum/__init__.py +++ b/forum/__init__.py @@ -1 +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()