def apply_(obj, data):
 for (key, value) in data.items():
  if _safe_value(obj, key, value):
   obj[key] = value
  else:
   obj.set_parse(key, six.text_type(value))

def apply_ ( obj , data ) : for ( key , value ) in data . items ( ) : if _safe_value ( obj , key , value ) : obj [ key ] = value else : obj . set_parse ( key , six . text_type ( value ) )
set the fields of a dbcore .