#NEWLINE# def _context_from_use( self , object_type , local_conf , global_conf , global_additions , section ) : #NEWLINE# #INDENT# use = local_conf . pop ( 'use' ) #NEWLINE# context = self . get_context ( use , name = use , global_conf = global_conf ) #NEWLINE# context . global_conf . update ( global_additions ) #NEWLINE# context . local_conf . update ( local_conf ) #NEWLINE# if ( '__file__' in global_conf ) : #NEWLINE# #INDENT# context . global_conf [ '__file__' ] = global_conf [ '__file__' ] #NEWLINE# #UNINDENT# context . loader = self #NEWLINE# if ( context . protocol is None ) : #NEWLINE# #INDENT# section_protocol = section . split ( ':' , 1 ) [ 0 ] #NEWLINE# if ( section_protocol in ( 'application' , 'app' ) ) : #NEWLINE# #INDENT# context . protocol = 'paste.app_factory' #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( section_protocol in ( 'composit' , 'composite' ) ) : #NEWLINE# #INDENT# context . protocol = 'paste.composit_factory' #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# context . protocol = ( 'paste.%s_factory' % section_protocol ) #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# return context