@event('manager.startup')
def init_parsers(manager):
    'Prepare our list of parsing plugins and default parsers.'
    for parser_type in PARSER_TYPES:
        parsers[parser_type] = {}
        for p in plugin.get_plugins(group=(parser_type + '_parser')):
            parsers[parser_type][p.name.replace('parser_', '')] = p.instance
        func_name = ('parse_' + parser_type)
        default_parsers[parser_type] = max(iter(parsers[parser_type].items()), key=(lambda p: getattr(getattr(p[1], func_name), 'priority', 0)))[0]
        log.debug(('setting default %s parser to %s. (options: %s)' % (parser_type, default_parsers[parser_type], parsers[parser_type])))
Prepare our list of parsing plugins and default parsers.
@event('manager.startup')
def init_parsers(manager):
    
    for parser_type in PARSER_TYPES:
        parsers[parser_type] = {}
        for p in plugin.get_plugins(group=(parser_type + '_parser')):
            parsers[parser_type][p.name.replace('parser_', )] = p.instance
        func_name = ('parse_' + parser_type)
        default_parsers[parser_type] = max(iter(parsers[parser_type].items()), key=(lambda p: getattr(getattr(p[1], func_name), 'priority', 0)))[0]
        log.debug(('setting default %s parser to %s. (options: %s)' % (parser_type, default_parsers[parser_type], parsers[parser_type])))