#NEWLINE# def _request_ext_controllers( self , application , ext_mgr , mapper ) : #NEWLINE# #INDENT# 'Returns a dict of RequestExtensionController-s by collection.' #NEWLINE# request_ext_controllers = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# for req_ext in ext_mgr . get_request_extensions ( ) : #NEWLINE# #INDENT# if ( req_ext . key not in request_ext_controllers . keys ( ) ) : #NEWLINE# #INDENT# controller = RequestExtensionController ( application ) #NEWLINE# mapper . connect ( ( req_ext . url_route + '.:(format)' ) , action = 'process' , controller = controller , conditions = req_ext . conditions ) #NEWLINE# mapper . connect ( req_ext . url_route , action = 'process' , controller = controller , conditions = req_ext . conditions ) #NEWLINE# request_ext_controllers [ req_ext . key ] = controller #NEWLINE# #UNINDENT# #UNINDENT# return request_ext_controllers