aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/tools/template.py
diff options
context:
space:
mode:
authorChristopher Allan Webber <cwebber@dustycloud.org>2013-05-10 20:26:55 -0500
committerChristopher Allan Webber <cwebber@dustycloud.org>2013-05-10 20:26:55 -0500
commit98dacfe67e40eb3c575b2fb9a5a80ced3e284ddc (patch)
tree4ce493ce50884f7e994b9b84ce9bf8791ead336d /mediagoblin/tools/template.py
parente39feb041b079af53af093050f97d741e40851e7 (diff)
downloadmediagoblin-98dacfe67e40eb3c575b2fb9a5a80ced3e284ddc.tar.lz
mediagoblin-98dacfe67e40eb3c575b2fb9a5a80ced3e284ddc.tar.xz
mediagoblin-98dacfe67e40eb3c575b2fb9a5a80ced3e284ddc.zip
Use the controller's symbolic/lookup name as part of the key for context hooks
This commit sponsored by David Collins. Thank you!
Diffstat (limited to 'mediagoblin/tools/template.py')
-rw-r--r--mediagoblin/tools/template.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mediagoblin/tools/template.py b/mediagoblin/tools/template.py
index 84fdabf2..950fb5da 100644
--- a/mediagoblin/tools/template.py
+++ b/mediagoblin/tools/template.py
@@ -107,7 +107,7 @@ def render_template(request, template_path, context):
# allow plugins to do things to the context
context = hook_transform(
- (request.controller, template_path),
+ (request.controller_name, template_path),
context)
rendered = template.render(context)