X-Git-Url: https://git.openstreetmap.org./osqa.git/blobdiff_plain/1a949f7c97dc2f34c135f5cdf088df2927d3d652..48da83177329ce1b7d3dfcfc83600e067120c7e2:/forum/__init__.py diff --git a/forum/__init__.py b/forum/__init__.py index 85cd5d2..fa60dba 100644 --- a/forum/__init__.py +++ b/forum/__init__.py @@ -1 +1,15 @@ -__all__ = ['admin','auth','const','feed','forms','managers','models','sitemap','urls','views'] +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()