def get_value(row, field_name):
    '''
    Returns the value found in the field_name attribute of the row dictionary.
    '''
    result = None
    dict_row = convert_to_dict(row)
    if detect_list(field_name):
        temp = row
        for field in field_name:
            dict_temp = convert_to_dict(temp)
            temp = dict_temp.get(field, None)
        result = temp
    else:
        result = dict_row.get(field_name, None)
    return result
def get_value ( row , field_name ) : result = None dict_row = convert_to_dict ( row ) if detect_list ( field_name ) : temp = row for field in field_name : dict_temp = convert_to_dict ( temp ) temp = dict_temp . get ( field , None ) result = temp else : result = dict_row . get ( field_name , None ) return result
Returns the value found in the field_name attribute of the row dictionary.