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

        new_obj = None

        obj = self.base.get(id)
        if obj is not None:
            new_obj = self._update_object(obj)
        else:
            # maybe newly created thing
            if id in self.new_obj:
                new_obj = self.new_obj[id]

        if new_obj is None:
            raise exceptions.IdNotFound(message='id %d does not exist' % id)

        r = self.model(**(self._sanitize_for_create(new_obj)))
        r.id = id

        result = r.jsonify(api=self.api)
        return result
dataset/ETHPy150Open rcbops/opencenter/opencenter/db/abstraction.py/EphemeralAbstraction.get/original