def RenderConfigOption(name):

  option_value = config_lib.CONFIG.Get(name)
  raw_value = config_lib.CONFIG.GetRaw(name)

  # TODO(user): implement proper is_default detection.
  is_default = False
  # TODO(user): implement proper interpolation detection.
  is_expanded = False

  if isinstance(option_value, str):
    raw_value = option_value = None
    value_type = "binary"
  else:
    value_type = "plain"
    option_value = api_value_renderers.RenderValue(option_value)

  return dict(raw_value=raw_value,
              value=option_value,
              is_expanded=is_expanded,
              is_default=is_default,
              type=value_type)
Set the default Content-Type header.
dataset/ETHPy150Open google/grr/grr/gui/api_plugins/config.py/RenderConfigOption--crossover with--dataset/ETHPy150Open AppScale/appscale/AppServer/google/appengine/tools/devappserver2/request_rewriter.py/_default_content_type_rewriter