]> git.openstreetmap.org Git - osqa.git/blob - forum/__init__.py
Fix error when unconfirmed users ask questions
[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()