- mutable = boolean_of_arg(get_arg(req, "mutable", "false"))
- if mutable:
- arg = get_arg(req, "mutable-type", None)
- mutable_type = parse_mutable_type_arg(arg)
- if mutable_type is "invalid":
- raise WebError("Unknown type: %s" % arg, http.BAD_REQUEST)
-
+ file_format = get_format(req, "CHK")
+ if file_format in ("SDMF", "MDMF"):
+ mutable_type = get_mutable_type(file_format)