#NEWLINE# def _validate_ui_config( obj_type , ui_config ) : #NEWLINE# #INDENT# 'Validates the value of a UI configuration.' #NEWLINE# reference_dict = UI_CONFIG_SPECS [ obj_type ] #NEWLINE# assert ( set ( ui_config . keys ( ) ) <= set ( reference_dict . keys ( ) ) ) #NEWLINE# for ( key , value ) in ui_config . iteritems ( ) : #NEWLINE# #INDENT# schema_utils . normalize_against_schema ( value , reference_dict [ value ] )