From 794fc93230eac81a7a19b52eb473498fc8edef27 Mon Sep 17 00:00:00 2001 From: David Read Date: Mon, 15 Feb 2016 15:23:39 +0000 Subject: [PATCH] Maintain compatibility with rest-style updates --- ckanext/harvest/harvesters/base.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ckanext/harvest/harvesters/base.py b/ckanext/harvest/harvesters/base.py index 72946ef..6f5e08e 100644 --- a/ckanext/harvest/harvesters/base.py +++ b/ckanext/harvest/harvesters/base.py @@ -309,7 +309,9 @@ class HarvesterBase(SingletonPlugin): package_dict.setdefault('name', existing_package_dict['name']) - new_package = p.toolkit.get_action('package_update')(context, package_dict) + new_package = p.toolkit.get_action( + 'package_update' if package_dict_form == 'package_show' + else 'package_update_rest')(context, package_dict) else: log.info('No changes to package with GUID %s, skipping...' % harvest_object.guid)