diff options
author | Aurélien Bompard <aurelien@bompard.org> | 2012-09-12 09:31:21 +0200 |
---|---|---|
committer | Aurélien Bompard <aurelien@bompard.org> | 2012-09-12 09:31:21 +0200 |
commit | 643a4a97ff7cd5013e25d2eeb6bcc68cf524c1d7 (patch) | |
tree | 76dd05d2ed331893eb1e486a2ca0287202c2ac05 /hyperkitty/lib/__init__.py | |
parent | e2160d63f1d07817a6aee7f601666792e243dc2d (diff) | |
download | hyperkitty-643a4a97ff7cd5013e25d2eeb6bcc68cf524c1d7.tar.gz hyperkitty-643a4a97ff7cd5013e25d2eeb6bcc68cf524c1d7.tar.xz hyperkitty-643a4a97ff7cd5013e25d2eeb6bcc68cf524c1d7.zip |
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"] |