From a3f811a6e8589fc4b47c9f3036ac1cf0c8b0e200 Mon Sep 17 00:00:00 2001 From: Christopher Allan Webber Date: Mon, 28 Jan 2013 11:58:38 -0600 Subject: Geolocation stuff, including including templates seems to be working-ish - I'm having trouble seeing if the geolocation stuff actually works, but plugins are included - including a list of template hooks works, however the macro to include them does not, so it's kinda verbose --- mediagoblin/tools/template.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'mediagoblin/tools/template.py') diff --git a/mediagoblin/tools/template.py b/mediagoblin/tools/template.py index 6e01a7dd..c76ce639 100644 --- a/mediagoblin/tools/template.py +++ b/mediagoblin/tools/template.py @@ -23,6 +23,7 @@ from mediagoblin import mg_globals from mediagoblin import messages from mediagoblin.tools import common from mediagoblin.tools.translate import get_gettext_translation +from mediagoblin.tools.pluginapi import get_hook_templates from mediagoblin.meddleware.csrf import render_csrf_form_token @@ -64,6 +65,9 @@ def get_jinja_env(template_loader, locale): template_env.filters['urlencode'] = url_quote_plus + # allow for hooking up plugin templates + template_env.globals['get_hook_templates'] = get_hook_templates + if exists(locale): SETUP_JINJA_ENVS[locale] = template_env -- cgit v1.2.3