]> git.openstreetmap.org Git - osqa.git/blob - forum/__init__.py
Stick with CC-BY-SA 2.0
[osqa.git] / forum / __init__.py
1 import threading
2
3
4 class RequestHolder(object):
5     _requests = threading.local()
6
7     @property
8     def request(self):
9         return self._requests.request
10
11     @request.setter
12     def request(self, value):
13         self._requests.request = value
14
15 REQUEST_HOLDER = RequestHolder()