#NEWLINE# def value_for_level( self , level ) : #NEWLINE# #INDENT# if ( level == Level . CRITICAL ) : #NEWLINE# #INDENT# return self . get ( 'critical' ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( self in ( Level . WARNING , Level . NOMINAL ) ) : #NEWLINE# #INDENT# return self . get ( 'warning' ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return None