From 949bb6fe6ae2a17b172ac9786058c0d45bc06395 Mon Sep 17 00:00:00 2001 From: amercader Date: Fri, 8 Mar 2013 14:47:11 +0000 Subject: [PATCH] [#16] Add organization to source dict --- ckanext/harvest/logic/schema.py | 1 + ckanext/harvest/plugin.py | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/ckanext/harvest/logic/schema.py b/ckanext/harvest/logic/schema.py index e2724a5..56ecd3e 100644 --- a/ckanext/harvest/logic/schema.py +++ b/ckanext/harvest/logic/schema.py @@ -33,6 +33,7 @@ def harvest_source_schema(): 'title': [if_empty_same_as("name"), unicode], 'notes': [ignore_missing, unicode], 'owner_org': [owner_org_validator, unicode], + 'organization': [ignore_missing], 'frequency': [ignore_missing, unicode, harvest_source_frequency_exists, convert_to_extras], 'state': [ignore_missing], 'config': [ignore_missing, harvest_source_config_validator, convert_to_extras], diff --git a/ckanext/harvest/plugin.py b/ckanext/harvest/plugin.py index 404ad4e..8933989 100644 --- a/ckanext/harvest/plugin.py +++ b/ckanext/harvest/plugin.py @@ -155,7 +155,8 @@ class Harvest(p.SingletonPlugin, DefaultDatasetForm): surplus_keys_schema = ['__extras', '__junk', 'extras', 'notes', 'extras_validation', 'save', 'return_to', 'type', - 'state', 'owner_org', 'frequency', 'config'] + 'state', 'owner_org', 'frequency', 'config', + 'organization'] #TODO: state and delete if not schema: