def _sanitize_for_update(self, data):
        # should we sanitize, or raise?
        retval = copy.deepcopy(data)

        # self._coerce_data(retval)

        schema = self.get_schema()

        ro_fields = [x for x in schema if schema[x]['updatable'] is False]

        for field in ro_fields:
            if field in retval:
                retval.pop(field)

        for field in data:
            if not schema.keys() in field:
                retval.pop(field)

        return retval
dataset/ETHPy150Open rcbops/opencenter/opencenter/db/abstraction.py/DbAbstraction._sanitize_for_update/swapped operands of `in`