def __init__(self, history_entry, del_rrest, add_rrest, change_type):
    self.history_entry = history_entry
    self.add_rrest = add_rrest
    self.del_rrest = del_rrest
    self.change_type = change_type
    self.changed_fields = []
    self.changeSet = []
    if (change_type == '+'):
        self.changed_fields.append('name')
        self.changed_fields.append('type')
        self.changed_fields.append('ttl')
        self.changeSet = get_record_changes(del_rrest, add_rrest)
    elif (change_type == '-'):
        self.changed_fields.append('name')
        self.changed_fields.append('type')
        self.changed_fields.append('ttl')
        self.changeSet = get_record_changes(del_rrest, add_rrest)
    elif (change_type == '*'):
        if (add_rrest['ttl'] != del_rrest['ttl']):
            self.changed_fields.append('ttl')
        self.changeSet = get_record_changes(del_rrest, add_rrest)
def __init__(self, history_entry, del_rrest, add_rrest, change_type):
    self.history_entry = history_entry
    self.add_rrest = add_rrest
    self.del_rrest = del_rrest
    self.change_type = change_type
    self.changed_fields = []
    self.changeSet = []
    if (change_type == '+'):
        self.changed_fields.append('name')
        self.changed_fields.append('type')
        self.changed_fields.append('ttl')
        self.changeSet = get_record_changes(del_rrest, add_rrest)
    elif (change_type == '-'):
        self.changed_fields.append('name')
        self.changed_fields.append('type')
        self.changed_fields.append('ttl')
        self.changeSet = get_record_changes(del_rrest, add_rrest)
    elif (change_type == '*'):
        if (add_rrest['ttl'] != del_rrest['ttl']):
            self.changed_fields.append('ttl')
        self.changeSet = get_record_changes(del_rrest, add_rrest)