X-Git-Url: https://git.openstreetmap.org./osqa.git/blobdiff_plain/87e592dc4c9e0321635350da8c9f1624554a604f..6b394aaf645c46996908bb1d11b0755dc8ca4067:/forum/__init__.py?ds=sidebyside 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()