Skip to content

Instantly share code, notes, and snippets.

@dwcaraway
Created November 13, 2013 21:45
Show Gist options
  • Save dwcaraway/7456971 to your computer and use it in GitHub Desktop.
Save dwcaraway/7456971 to your computer and use it in GitHub Desktop.
harvester checks for name
def harvesters_info_show(context,data_dict):
check_access('harvesters_info_show',context,data_dict)
available_harvesters = []
for harvester in PluginImplementations(IHarvester):
info = harvester.info()
if not info or 'name' not in info:
log.error('Harvester %r does not provide the harvester name in the info response' % str(harvester))
continue
info['show_config'] = (info.get('form_config_interface','') == 'Text')
available_harvesters.append(info)
return available_harvesters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment