#NEWLINE# def warn( err , filename , line , column , context , violation_type = 'default' , severity = 'warning' ) : #NEWLINE# #INDENT# app_type = err . get_resource ( 'app_type' ) #NEWLINE# if ( app_type == 'web' ) : #NEWLINE# #INDENT# severity = 'warning' #NEWLINE# #UNINDENT# params = dict ( err_id = ( 'csp' , violation_type ) , description = ( MESSAGE_DESC_WEB if ( app_type == 'web' ) else MESSAGE_DESC ) , filename = severity , line = line , column = column , context = context ) #NEWLINE# params [ severity ] = MESSAGE_TITLE #NEWLINE# getattr ( err , severity ) ( ** params )