From fee3a42ec0b9ca8a13c7e1fe508212b1af7fccea Mon Sep 17 00:00:00 2001 From: Abhilash Raj Date: Thu, 13 Aug 2015 16:16:22 +0530 Subject: vars for templates are now per archiver So you cannot pass a dictionary as variable in templates. Create a variable for each active archiver for the list. The variable is of the form of _url i.e. 'hyperkitty_url' --- src/mailman/handlers/decorate.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/mailman/handlers/decorate.py b/src/mailman/handlers/decorate.py index 34430b80f..22bb744bc 100644 --- a/src/mailman/handlers/decorate.py +++ b/src/mailman/handlers/decorate.py @@ -67,7 +67,8 @@ def process(mlist, msg, msgdata): for archiver in archivers if archiver.is_enabled] archive_urls = [(archiver,url) for archiver, url in archive_urls if url is not None] if len(archive_urls): - d['archive_url'] = dict(archive_urls) + for archiver, url in archive_urls: + d[archiver + '_url'] = url # These strings are descriptive for the log file and shouldn't be i18n'd d.update(msgdata.get('decoration-data', {})) try: -- cgit v1.3.1