From f8a65b41490de49b6abbe459e5ee382d19ce8d46 Mon Sep 17 00:00:00 2001 From: Aurélien Bompard Date: Tue, 11 Sep 2012 18:51:36 +0200 Subject: Use a middleware to avoid KS connection leaks --- hyperkitty/models.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'hyperkitty/models.py') diff --git a/hyperkitty/models.py b/hyperkitty/models.py index dae055a..6a8bd63 100644 --- a/hyperkitty/models.py +++ b/hyperkitty/models.py @@ -61,6 +61,8 @@ class UserProfile(models.Model): except Rating.DoesNotExist: votes = {} + # TODO: warning, not thread-safe, should get the cached connection from + # the WSGI environment store = get_store(settings.KITTYSTORE_URL) for vote in votes: list_name = vote.list_address.split('@')[0] -- cgit