

def _get_value(self, entity):
    if (entity._projection and (self._name in entity._projection)):
        return super(ComputedProperty, self)._get_value(entity)
    value = self._func(entity)
    self._store_value(entity, value)
    return value

dataset/ETHPy150Open GoogleCloudPlatform/datastore-ndb-python/ndb/model.py ComputedProperty._get_value/original