def get(name):
    '''Get a linkchecker given its name or fallback on default'''
    linkcheckers = get_enabled(ENTRYPOINT, current_app)
    linkcheckers.update(no_check=NoCheckLinkchecker)  # no_check always enabled
    selected_linkchecker = linkcheckers.get(name)
    if not selected_linkchecker:
        default_linkchecker = current_app.config.get(
                                'LINKCHECKING_DEFAULT_LINKCHECKER')
        selected_linkchecker = linkcheckers.get(default_linkchecker)
    if not selected_linkchecker:
        log.error('No linkchecker found ({} requested and no fallback)'.format(
                  name))
    return selected_linkchecker
def get ( name ) : linkcheckers = get_enabled ( ENTRYPOINT , current_app ) linkcheckers . update ( no_check = NoCheckLinkchecker ) selected_linkchecker = linkcheckers . get ( name ) if not selected_linkchecker : default_linkchecker = current_app . config . get ( 'LINKCHECKING_DEFAULT_LINKCHECKER' ) selected_linkchecker = linkcheckers . get ( default_linkchecker ) if not selected_linkchecker : log . error ( 'No linkchecker found ({} requested and no fallback)' . format ( name ) ) return selected_linkchecker
Get a linkchecker given its name or fallback on default