From a8923a7da3bb18f2a8b8058ecde6460b2ffdaab4 Mon Sep 17 00:00:00 2001 From: Caleb Forbes Davis V Date: Mon, 27 Jun 2011 23:49:57 -0500 Subject: [PATCH] removes messages.add_message from the global template context templates don't add messages. views are responsible for that. --- mediagoblin/util.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/mediagoblin/util.py b/mediagoblin/util.py index f0229300..a20e87c4 100644 --- a/mediagoblin/util.py +++ b/mediagoblin/util.py @@ -106,8 +106,6 @@ def get_jinja_env(template_loader, locale): mg_globals.translations.ngettext) # All templates will know how to ... - # ... add a new message to the message queue - template_env.globals['add_message'] = messages.add_message # ... fetch all waiting messages and remove them from the queue template_env.globals['fetch_messages'] = messages.fetch_messages