Skip to content
Snippets Groups Projects
Commit 7dea78e7 authored by Thorge Petersen's avatar Thorge Petersen
Browse files

More named route fixes

parent 6322ba83
Branches
Tags
2 merge requests!41Version 2.0.0,!38Merge py3 into dev
......@@ -428,7 +428,7 @@ def get_package_dict(name):
def tpsh_get_successor_and_predecessor_urls(context, pkg_dict):
successor_name, predecessor_name = tpsh_get_successor_and_predecessor_dataset(context, pkg_dict)
successor_url, predecessor_url = (
helpers.url_for(named_route='dataset.read', id=name)
helpers.url_for('dataset.read', id=name)
if name is not None
else None
for name in (successor_name, predecessor_name)
......
......@@ -192,7 +192,7 @@ class ODSHDCATdeProfile(DCATdeProfile):
@staticmethod
def _construct_refs(id):
public_url = config.get('ckan.site_url')
url_to_id = helpers.url_for(named_route='dataset.read', id=id)
url_to_id = helpers.url_for('dataset.read', id=id)
ref = public_url + url_to_id
return ref
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment