Merge branch 'add-harvesting-of-organizations' of git://github.com/metaodi/ckanext-harvest into metaodi-add-harvesting-of-organizations

This commit is contained in:
amercader 2013-10-15 17:49:28 +01:00
commit 49999893e7
1 changed files with 18 additions and 17 deletions

View File

@ -309,6 +309,7 @@ class CKANHarvester(HarvesterBase):
remote_org = package_dict['owner_org'] remote_org = package_dict['owner_org']
context = {'model': model, 'session': Session, 'user': 'harvest'} context = {'model': model, 'session': Session, 'user': 'harvest'}
if remote_org:
try: try:
data_dict = {'id': remote_org} data_dict = {'id': remote_org}
org = get_action('organization_show')(context, data_dict) org = get_action('organization_show')(context, data_dict)