[#16] Add organization to source dict

This commit is contained in:
amercader 2013-03-08 14:47:11 +00:00
parent 7257258ca4
commit 949bb6fe6a
2 changed files with 3 additions and 1 deletions

View File

@ -33,6 +33,7 @@ def harvest_source_schema():
'title': [if_empty_same_as("name"), unicode], 'title': [if_empty_same_as("name"), unicode],
'notes': [ignore_missing, unicode], 'notes': [ignore_missing, unicode],
'owner_org': [owner_org_validator, unicode], 'owner_org': [owner_org_validator, unicode],
'organization': [ignore_missing],
'frequency': [ignore_missing, unicode, harvest_source_frequency_exists, convert_to_extras], 'frequency': [ignore_missing, unicode, harvest_source_frequency_exists, convert_to_extras],
'state': [ignore_missing], 'state': [ignore_missing],
'config': [ignore_missing, harvest_source_config_validator, convert_to_extras], 'config': [ignore_missing, harvest_source_config_validator, convert_to_extras],

View File

@ -155,7 +155,8 @@ class Harvest(p.SingletonPlugin, DefaultDatasetForm):
surplus_keys_schema = ['__extras', '__junk', 'extras', 'notes', surplus_keys_schema = ['__extras', '__junk', 'extras', 'notes',
'extras_validation', 'save', 'return_to', 'type', 'extras_validation', 'save', 'return_to', 'type',
'state', 'owner_org', 'frequency', 'config'] 'state', 'owner_org', 'frequency', 'config',
'organization']
#TODO: state and delete #TODO: state and delete
if not schema: if not schema: