#NEWLINE# def _check_decision_attributes( self , kind , value , decision_id ) : #NEWLINE# #INDENT# problems = [ ] #NEWLINE# constraints = DECISIONS_FIELDS . get ( kind , { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } ) #NEWLINE# for ( key , constraint ) in constraints . items ( ) : #NEWLINE# #INDENT# if ( constraint [ 'required' ] and ( not value . get ( key ) ) ) : #NEWLINE# #INDENT# problems . append ( { #NEWLINE# #INDENT# 'type' : 'null_value' , #NEWLINE# 'where' : 'decisions.{0}.member.{1}.{2}' . format ( decision_id , kind , key ) , #NEWLINE# #UNINDENT# } ) #NEWLINE# #UNINDENT# #UNINDENT# return problems