diff options
author | Caleb Forbes Davis V <caldavis@gmail.com> | 2011-06-27 23:49:57 -0500 |
---|---|---|
committer | Caleb Forbes Davis V <caldavis@gmail.com> | 2011-06-27 23:49:57 -0500 |
commit | a8923a7da3bb18f2a8b8058ecde6460b2ffdaab4 (patch) | |
tree | 740d313fd49c361ed88674250849994e9ad0bd53 | |
parent | 2264670357754ae546ed69e3c825da8860b372aa (diff) | |
download | mediagoblin-a8923a7da3bb18f2a8b8058ecde6460b2ffdaab4.tar.lz mediagoblin-a8923a7da3bb18f2a8b8058ecde6460b2ffdaab4.tar.xz mediagoblin-a8923a7da3bb18f2a8b8058ecde6460b2ffdaab4.zip |
removes messages.add_message from the global template context
templates don't add messages. views are responsible for that.
-rw-r--r-- | mediagoblin/util.py | 2 |
1 files changed, 0 insertions, 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 |