'run through a list of edits and process them one-by-one'

@staticmethod
def process_edits(edits, yamlfile):

    results = []
    for edit in edits:
        value = Yedit.parse_value(edit['value'], edit.get('value_type', ''))
        if (edit.get('action') == 'update'):
            curr_value = Yedit.get_curr_value(Yedit.parse_value(edit.get('curr_value')), edit.get('curr_value_format'))
            rval = yamlfile.update(edit['key'], value, edit.get('index'), curr_value)
        elif (edit.get('action') == 'append'):
            rval = yamlfile.append(edit['key'], value)
        else:
            rval = yamlfile.put(edit['key'], value)
        if rval[0]:
            results.append({'key': edit['key'], 'edit': rval[1]})
    return {'changed': (len(results) > 0), 'results': results}
