Created
November 13, 2013 21:45
-
-
Save dwcaraway/7456971 to your computer and use it in GitHub Desktop.
harvester checks for name
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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