Skip to content

Commit

Permalink
[#2257] Remove leftover references to restrict_template_vars
Browse files Browse the repository at this point in the history
These got in after merging master I think
  • Loading branch information
Sean Hammond committed Oct 12, 2012
1 parent f321a05 commit 84382d8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
6 changes: 2 additions & 4 deletions ckan/config/environment.py
Expand Up @@ -79,10 +79,8 @@ def __getattr__(self, name):
return self.functions[name]
else:
if name in self.deprecated:
msg = 'Template helper function `%s` is not available ' \
'as it has been deprecated.\nYou can enable it ' \
'by setting ckan.restrict_template_vars = true ' \
'in your .ini file.' % name
msg = ('Template helper function `{0}` is not available '
'because it has been deprecated.'.format(name))
self.log.critical(msg)
else:
msg = 'Helper function `%s` could not be found\n ' \
Expand Down
1 change: 0 additions & 1 deletion ckan/lib/helpers.py
Expand Up @@ -1311,7 +1311,6 @@ def resource_preview(resource, pkg_id):


# these are the functions that will end up in `h` template helpers
# if config option restrict_template_vars is true
__allowed_functions__ = [
# functions defined in ckan.lib.helpers
'redirect_to',
Expand Down

0 comments on commit 84382d8

Please sign in to comment.