Fix output for harvest_source_create/update

They were using an incorrect schema, so not returning a harvest source
like dict.
This commit is contained in:
amercader 2014-09-29 12:43:37 +01:00
parent c9aff29613
commit e60e2eee03
2 changed files with 2 additions and 8 deletions

View File

@ -65,10 +65,7 @@ def harvest_source_create(context,data_dict):
data_dict['type'] = DATASET_TYPE_NAME
context['extras_as_string'] = True
package_dict = logic.get_action('package_create')(context, data_dict)
context['schema'] = harvest_source_show_package_schema()
source = logic.get_action('package_show')(context, package_dict)
source = logic.get_action('package_create')(context, data_dict)
return source

View File

@ -77,10 +77,7 @@ def harvest_source_update(context,data_dict):
data_dict['type'] = DATASET_TYPE_NAME
context['extras_as_string'] = True
package_dict = logic.get_action('package_update')(context, data_dict)
context['schema'] = harvest_source_show_package_schema()
source = logic.get_action('package_show')(context, package_dict)
source = logic.get_action('package_update')(context, data_dict)
return source