#NEWLINE# def includeme( config ) : #NEWLINE# #INDENT# 'Add the Velruse standalone app configuration to a Pyramid app.' #NEWLINE# settings = config . registry . settings #NEWLINE# config . add_directive ( 'register_velruse_store' , register_velruse_store ) #NEWLINE# setup = ( settings . get ( 'setup' ) or default_setup ) #NEWLINE# if setup : #NEWLINE# #INDENT# config . include ( setup ) #NEWLINE# #UNINDENT# for provider in settings_adapter : #NEWLINE# #INDENT# config . include ( ( 'velruse.providers.%s' % provider ) ) #NEWLINE# #UNINDENT# for provider in find_providers ( settings ) : #NEWLINE# #INDENT# load_provider ( config , provider ) #NEWLINE# #UNINDENT# if ( not settings . get ( 'endpoint' ) ) : #NEWLINE# #INDENT# raise ConfigurationError ( 'missing required setting "endpoint"' ) #NEWLINE# #UNINDENT# config . add_view ( auth_complete_view , context = 'velruse.AuthenticationComplete' ) #NEWLINE# config . add_view ( auth_denied_view , context = 'velruse.AuthenticationDenied' ) #NEWLINE# config . add_view ( auth_info_view , name = 'auth_info' , request_param = 'format=json' , renderer = 'json' )