Skip to content

Commit

Permalink
remove pylons url function so defunct templates will fail
Browse files Browse the repository at this point in the history
  • Loading branch information
Toby committed Feb 9, 2012
1 parent 497b0f0 commit a57f8a7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions ckan/lib/base.py
Expand Up @@ -51,6 +51,12 @@ def render_template():
globs = extra_vars or {}
globs.update(pylons_globals())
globs['actions'] = model.Action

# Using pylons.url() or pylons.url_for() directly destroys the
# localisation stuff so we remove it so any bad templates crash
# and burn
del globs['url']

template = globs['app_globals'].genshi_loader.load(template_name,
cls=loader_class)
stream = template.generate(**globs)
Expand Down

0 comments on commit a57f8a7

Please sign in to comment.