diff options
author | Christopher Allan Webber <cwebber@dustycloud.org> | 2011-06-28 20:09:35 -0500 |
---|---|---|
committer | Christopher Allan Webber <cwebber@dustycloud.org> | 2011-06-28 20:09:35 -0500 |
commit | 86e3e90080835557cd3734b47506fce0a2352405 (patch) | |
tree | e37060110f759ed392d6ebbf7ab87558f54f1257 /mediagoblin/util.py | |
parent | 2527754202ea9530c9046270e63d71581923dc77 (diff) | |
parent | 9f094beaafa2b5cefcd1812b692421cb0e1718e6 (diff) | |
download | mediagoblin-86e3e90080835557cd3734b47506fce0a2352405.tar.lz mediagoblin-86e3e90080835557cd3734b47506fce0a2352405.tar.xz mediagoblin-86e3e90080835557cd3734b47506fce0a2352405.zip |
Merge remote branch 'remotes/gullydwarf-cfdv/f368_msg_framework'
Diffstat (limited to 'mediagoblin/util.py')
-rw-r--r-- | mediagoblin/util.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/mediagoblin/util.py b/mediagoblin/util.py index 91fbee0a..a20e87c4 100644 --- a/mediagoblin/util.py +++ b/mediagoblin/util.py @@ -32,6 +32,7 @@ from lxml.html.clean import Cleaner import markdown from mediagoblin import mg_globals +from mediagoblin import messages from mediagoblin.db.util import ObjectId TESTS_ENABLED = False @@ -104,6 +105,10 @@ def get_jinja_env(template_loader, locale): mg_globals.translations.gettext, mg_globals.translations.ngettext) + # All templates will know how to ... + # ... fetch all waiting messages and remove them from the queue + template_env.globals['fetch_messages'] = messages.fetch_messages + if exists(locale): SETUP_JINJA_ENVS[locale] = template_env |