diff options
author | Aurélien Bompard <aurelien@bompard.org> | 2012-09-05 14:43:39 +0200 |
---|---|---|
committer | Aurélien Bompard <aurelien@bompard.org> | 2012-09-05 14:43:39 +0200 |
commit | 54f6eb7982a562a3526ee3b9be62fa6e9344dbdb (patch) | |
tree | 1bc46849e095bd5868e13ca78a6479c4c4164b29 /hyperkitty/views/thread.py | |
parent | f409640d25c33247d06a3f00c006426e593cb751 (diff) | |
download | hyperkitty-54f6eb7982a562a3526ee3b9be62fa6e9344dbdb.tar.gz hyperkitty-54f6eb7982a562a3526ee3b9be62fa6e9344dbdb.tar.xz hyperkitty-54f6eb7982a562a3526ee3b9be62fa6e9344dbdb.zip |
Adapt to KittyStore's API change
Diffstat (limited to 'hyperkitty/views/thread.py')
-rw-r--r-- | hyperkitty/views/thread.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/hyperkitty/views/thread.py b/hyperkitty/views/thread.py index 8da41b7..f8820c9 100644 --- a/hyperkitty/views/thread.py +++ b/hyperkitty/views/thread.py @@ -13,7 +13,7 @@ from hyperkitty.models import Rating, Tag from forms import * from hyperkitty.utils import log -from hyperkitty.lib import ThreadSafeStorePool +from hyperkitty.lib import ThreadSafeStorePool, get_months def thread_index (request, mlist_fqdn, threadid): @@ -23,7 +23,7 @@ def thread_index (request, mlist_fqdn, threadid): search_form = SearchForm(auto_id=False) t = loader.get_template('thread.html') STORE = ThreadSafeStorePool().get() - threads = STORE.get_thread(mlist_fqdn, threadid) + threads = STORE.get_messages_in_thread(mlist_fqdn, threadid) #prev_thread = mongo.get_thread_name(list_name, int(threadid) - 1) prev_thread = [] if len(prev_thread) > 30: @@ -65,7 +65,7 @@ def thread_index (request, mlist_fqdn, threadid): participants[message.sender_name] = {'email': message.sender_email} cnt = cnt + 1 - archives_length = STORE.get_archives_length(mlist_fqdn) + archives_length = get_months(STORE, mlist_fqdn) from_url = '/thread/%s/%s/' % (mlist_fqdn, threadid) tag_form = AddTagForm(initial={'from_url' : from_url}) |