summaryrefslogtreecommitdiffstats
path: root/hyperkitty/views/thread.py
diff options
context:
space:
mode:
authorAurélien Bompard <aurelien@bompard.org>2012-09-12 09:31:21 +0200
committerAurélien Bompard <aurelien@bompard.org>2012-09-12 09:31:21 +0200
commit643a4a97ff7cd5013e25d2eeb6bcc68cf524c1d7 (patch)
tree76dd05d2ed331893eb1e486a2ca0287202c2ac05 /hyperkitty/views/thread.py
parente2160d63f1d07817a6aee7f601666792e243dc2d (diff)
downloadhyperkitty-643a4a97ff7cd5013e25d2eeb6bcc68cf524c1d7.tar.gz
hyperkitty-643a4a97ff7cd5013e25d2eeb6bcc68cf524c1d7.tar.xz
hyperkitty-643a4a97ff7cd5013e25d2eeb6bcc68cf524c1d7.zip
Use a middleware to avoid KS connection leaks
Diffstat (limited to 'hyperkitty/views/thread.py')
-rw-r--r--hyperkitty/views/thread.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/hyperkitty/views/thread.py b/hyperkitty/views/thread.py
index bef9c40..b5bf80a 100644
--- a/hyperkitty/views/thread.py
+++ b/hyperkitty/views/thread.py
@@ -9,13 +9,12 @@ from django.core.paginator import Paginator, EmptyPage, PageNotAnInteger, Invali
from django.contrib.auth.decorators import (login_required,
permission_required,
user_passes_test)
-from kittystore import get_store
from hyperkitty.models import Rating, Tag
#from hyperkitty.lib.mockup import *
from forms import *
from hyperkitty.utils import log
-from hyperkitty.lib import get_months
+from hyperkitty.lib import get_months, get_store
@@ -25,7 +24,7 @@ def thread_index (request, mlist_fqdn, threadid):
search_form = SearchForm(auto_id=False)
t = loader.get_template('thread.html')
- store = get_store(settings.KITTYSTORE_URL)
+ store = get_store(request)
messages = store.get_messages_in_thread(mlist_fqdn, threadid)
#prev_thread = mongo.get_thread_name(list_name, int(threadid) - 1)
prev_thread = []