def _validate_ui_config(obj_type, ui_config):
 reference_dict = UI_CONFIG_SPECS[obj_type]
 assert (set(ui_config.keys()) <= set(reference_dict.keys()))
 for (key, value) in ui_config.iteritems():
  schema_utils.normalize_against_schema(value, reference_dict[key])

def _validate_ui_config ( obj_type , ui_config ) : reference_dict = UI_CONFIG_SPECS [ obj_type ] assert ( set ( ui_config . keys ( ) ) <= set ( reference_dict . keys ( ) ) ) for ( key , value ) in ui_config . iteritems ( ) : schema_utils . normalize_against_schema ( value , reference_dict [ key ] )
validates the value of a ui configuration .