#NEWLINE# def load_provider( config , provider ) : #NEWLINE# #INDENT# settings = config . registry . settings #NEWLINE# impl = ( settings . get ( ( 'provider.%s.impl' % provider ) ) or provider ) #NEWLINE# login_cfg = settings_adapter . get ( config ) #NEWLINE# if ( login_cfg is None ) : #NEWLINE# #INDENT# raise ConfigurationError ( ( 'could not find configuration method for provider %s' % provider ) ) #NEWLINE# #UNINDENT# loader = getattr ( config , login_cfg ) #NEWLINE# loader ( prefix = ( 'provider.%s.' % provider ) )