def ParseArgs(self, request):
    """Parse the request into a KeyValue proto."""
    key = request.REQ.get("%s_key" % self.prefix)
    value = request.REQ.get("%s_value" % self.prefix)
    value_type = request.REQ.get("%s_type" % self.prefix)

    if key is None:
      return

    result = rdf_protodict.KeyValue()
    result.k.SetValue(key)

    # Automatically try to detect the value
    if value_type is None:
      value = self.GuessValueType(value)
    elif value_type == "Integer":
      value = int(value)
    elif value_type == "Float":
      value = float(value)
    elif value_type == "Boolean":
      if value in ["True", "true", "yes", "1"]:
        value = True

      elif ["False", "false", "no", "0"] in value:
        value = False

      else:
        raise ValueError("Value %s is not a boolean" % value)
    elif value_type == "String":
      value = value.decode("utf8")

    result.v.SetValue(value)

    return result
dataset/ETHPy150Open google/grr/grr/gui/plugins/semantic.py/KeyValueFormRenderer.ParseArgs/swapped operands of `in`