File '/home/adria/dev/pyenvs/gates/src/ckanext-versioning/ckanext/versioning/templates/package/snippets/resource_views_list.html', line 15 in top-level template code
{% set current_filters = request.args.get('filters') %}
File '/home/adria/dev/pyenvs/gates/lib/python2.7/site-packages/jinja2/environment.py', line 430 in getattr
return getattr(obj, attribute)
UndefinedError: 'pylons.controllers.util.Request object' has no attribute 'args'
The resource view snippets were using request.args which is a Flask construct, but on CKAN 2.8 the resource requests are still served by Pylons, which uses request.params.
Added a small helper that uses toolkit.request, which takes care of this, for support across CKAN versions
The resource view snippets were using
request.args
which is a Flask construct, but on CKAN 2.8 the resource requests are still served by Pylons, which usesrequest.params
.Added a small helper that uses
toolkit.request
, which takes care of this, for support across CKAN versions