Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix url_for routing to point to harvester blueprint. #523

Merged
merged 1 commit into from
Mar 22, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions ckanext/harvest/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -633,7 +633,7 @@ def job_abort_view(source, id):
return tk.abort(500, msg)

return h.redirect_to(
h.url_for('{0}.admin'.format(DATASET_TYPE_NAME), id=source))
h.url_for('harvester.admin', id=source))


def refresh_view(id):
Expand Down Expand Up @@ -663,7 +663,7 @@ def refresh_view(id):
h.flash_error(msg)

return h.redirect_to(
h.url_for('{0}.admin'.format(DATASET_TYPE_NAME), id=id))
h.url_for('harvester.admin', id=id))


def clear_view(id):
Expand All @@ -680,7 +680,7 @@ def clear_view(id):
h.flash_error(msg)

return h.redirect_to(
h.url_for('{0}.admin'.format(DATASET_TYPE_NAME), id=id))
h.url_for('harvester.admin', id=id))


def delete_view(id):
Expand All @@ -701,7 +701,7 @@ def delete_view(id):
h.flash_success(_('Harvesting source successfully inactivated'))

return h.redirect_to(
h.url_for('{0}.admin'.format(DATASET_TYPE_NAME), id=id))
h.url_for('harvester.admin', id=id))
except tk.ObjectNotFound:
return tk.abort(404, _('Harvest source not found'))
except tk.NotAuthorized:
Expand Down