diff options
author | Pierre-Yves Chibon <pingou@pingoured.fr> | 2012-04-23 18:40:08 +0200 |
---|---|---|
committer | Pierre-Yves Chibon <pingou@pingoured.fr> | 2012-04-23 18:40:08 +0200 |
commit | 463c79bd2fffe57cac90c76a336304b0072b1e23 (patch) | |
tree | 9f8e7700ed654a1a8d7dbe81badd52a0da264da7 | |
parent | 17e7a8babf93feb65327db8898b2494c6b490d08 (diff) | |
download | hyperkitty-463c79bd2fffe57cac90c76a336304b0072b1e23.tar.gz hyperkitty-463c79bd2fffe57cac90c76a336304b0072b1e23.tar.xz hyperkitty-463c79bd2fffe57cac90c76a336304b0072b1e23.zip |
Ugly hack to get gravatar working -- should be fixed in the db level and this commit should be reverted
-rw-r--r-- | views/pages.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/views/pages.py b/views/pages.py index 6537a41..415316d 100644 --- a/views/pages.py +++ b/views/pages.py @@ -227,6 +227,7 @@ def message (request, mlist_fqdn, messageid): search_form = SearchForm(auto_id=False) t = loader.get_template('message.html') message = Bunch(mongo.get_email(list_name, messageid)) + message.Email = message.Email.strip() c = RequestContext(request, { 'app_name': settings.APP_NAME, @@ -259,6 +260,7 @@ def _search_results_page(request, mlist_fqdn, query_string, search_type, cnt = 0 for msg in threads.object_list: msg = Bunch(msg) + msg.Email = msg.Email.strip() # Statistics on how many participants and threads this month participants.add(msg['From']) if 'ThreadID' in msg: @@ -348,6 +350,7 @@ def thread (request, mlist_fqdn, threadid): cnt = 0 for msg in threads: msg = Bunch(msg) + msg.email.Email = msg.email.Email.strip() # Statistics on how many participants and threads this month participants.add(msg.email.From) cnt = cnt + 1 |