Skip to content

Commit

Permalink
Remove Jinja2 Bytecode cache
Browse files Browse the repository at this point in the history
I'm getting random failures with the scheming extensions

File '/home/adria/dev/pyenvs/ckan/src/ckanext-scheming/ckanext/scheming/templates/scheming/package/read.html', line 3 in top-level template code
  {%- set schema = h.scheming_get_dataset_schema(dataset_type) -%}
File '/home/adria/dev/pyenvs/ckan/local/lib/python2.7/site-packages/jinja2/environment.py', line 434 in getattr
  return obj[attribute]
File '/home/adria/dev/pyenvs/ckan/src/ckan/ckan/lib/helpers.py', line 85 in __getitem__
  key=key
HelperError: Helper 'scheming_get_dataset_schema' has not been defined.

Removing the bytecode cache stops the failures entirely.
  • Loading branch information
amercader committed May 4, 2018
1 parent 0d49d35 commit 46797c4
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion ckan/lib/jinja_extensions.py
Expand Up @@ -35,7 +35,6 @@ def get_jinja_env_options():
ResourceExtension,
UrlForStaticExtension,
UrlForExtension],
bytecode_cache=FileSystemBytecodeCache()
)


Expand Down

0 comments on commit 46797c4

Please sign in to comment.