#NEWLINE# def create_user_auth( name , auth_configuration , user_auth_configuration ) : #NEWLINE# #INDENT# if ( name in SIMPLE_PLUGINS ) : #NEWLINE# #INDENT# PluginClass = SIMPLE_PLUGINS [ name ] #NEWLINE# return PluginClass ( auth_configuration , user_auth_configuration ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( name in EXTERNAL_MANAGERS . keys ( ) ) : #NEWLINE# #INDENT# return WebProtocolUserAuth ( ) #NEWLINE# #UNINDENT# #UNINDENT# raise DbUnsupportedUserAuth ( ( 'UserAuth %s not supported' % name ) )