

def __setattr__(self, key, value):
    if self.has_key(value):
        self.__field_map[key].value = value
        self[key] = self.__field_map[key].value
        self.__dict__[key] = self.__field_map[key].value
    else:
        raise ValueError('Key does not exist in model')

dataset/ETHPy150Open lonelycode/Mojo/Mojo/ObjectMapper/ModelPrototype.py Model.__setattr__/VarMisuse@19/22 `key`->`value`