Merge branch 'source_extra_config_validation' of github.com:okfn/ckanext-harvest into source_extra_config_validation

This commit is contained in:
amercader 2013-02-28 16:03:27 +00:00
commit 217d58d3a4
1 changed files with 3 additions and 1 deletions

View File

@ -155,8 +155,10 @@ def harvest_source_extra_validator(key,data,errors,context):
config_dict = {}
config_dict.update(extra_data)
if config_dict:
config = json.dumps(config_dict)
package_extras.append(dict(key='config',
value=json.dumps(config_dict)))
value=config))
data[('config',)] = config
if package_extras:
data[('extras',)] = package_extras