diff options
| author | Aurélien Bompard <aurelien@bompard.org> | 2012-09-11 18:51:36 +0200 |
|---|---|---|
| committer | Aurélien Bompard <aurelien@bompard.org> | 2012-09-12 09:31:21 +0200 |
| commit | f8a65b41490de49b6abbe459e5ee382d19ce8d46 (patch) | |
| tree | 76dd05d2ed331893eb1e486a2ca0287202c2ac05 /hyperkitty/lib/__init__.py | |
| parent | e2160d63f1d07817a6aee7f601666792e243dc2d (diff) | |
Use a middleware to avoid KS connection leaks
Diffstat (limited to 'hyperkitty/lib/__init__.py')
| -rw-r--r-- | hyperkitty/lib/__init__.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/hyperkitty/lib/__init__.py b/hyperkitty/lib/__init__.py index be8e27d..710011a 100644 --- a/hyperkitty/lib/__init__.py +++ b/hyperkitty/lib/__init__.py @@ -5,6 +5,7 @@ from hashlib import md5 import datetime from django.conf import settings +import kittystore from hyperkitty.utils import log @@ -41,3 +42,6 @@ def get_months(store, list_name): archives[now.year] = range(1, 13)[:now.month] return archives + +def get_store(request): + return request.environ["kittystore.store"] |
