def get(self, id):
        id = self._validate_id_format(id)

        if self.cache is None:
            return self.base.get(id)
        else:
            if not id in self.cache:
                raise exceptions.IdNotFound(
                    message='%s id %d does not exist' % (self.model, int(id)))
            else:
                return self.cache[int(id)]
dataset/ETHPy150Open rcbops/opencenter/opencenter/db/abstraction.py/CachedAbstraction.get/original