[ckan-dev] ckanext-qa relative_url_for not defined error

McDonaldR McDonaldR at angus.gov.uk
Tue Dec 6 15:16:34 UTC 2016


Hi List

I've just upgraded my CKAN installation on Ubuntu 14.04 to 2.6.0 and have also upgraded my plugins - archiver, qa and reports to the latest versions.  Everything works except the openness report which returns a server error.

I get the following error message:

File '/usr/lib/ckan/default/src/ckanext-qa/ckanext/qa/templates/report/openness.html', line 40 in top-level template code
  <td>{{ h.link_to(row['organization_title'], h.relative_url_for(organization=row['organization_name'])) }}</td>
File '/usr/lib/ckan/default/lib/python2.7/site-packages/jinja2/environment.py', line 412 in getattr
  return obj[attribute]
File '/usr/lib/ckan/default/src/ckan/ckan/lib/helpers.py', line 62 in __getitem__
  key=key
HelperError: Helper 'relative_url_for' has not been defined.

Line 40 in openness.html is flagged.  Any suggestions as to a fix?

Thanks

Ross

Ross McDonald | GIS Data Coordinator | Angus Council | Angus House, Orchardbank Business Park, Sylvie Way, Forfar DD8 1AT | t: 01307 476419


This message is strictly confidential. If you have received this in error, please inform the sender and remove it from your system. If received in error you may not copy, print, forward or use it or any attachment in any way. This message is not capable of creating a legal contract or a binding representation and does not represent the views of Angus Council. Emails may be monitored for security and network management reasons. Messages containing inappropriate content may be intercepted. Angus Council does not accept any liability for any harm that may be caused to the recipient system or data on it by this message or any attachment.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20161206/7db57187/attachment-0002.html>


More information about the ckan-dev mailing list