def decode_task_payload(task):
  body = task["body"]
  if not body:
    return {}
  decoded = base64.b64decode(body)
  result = {}
  for (name, value) in cgi.parse_qs(decoded).items():
    if len(value) == 1:
      result[name] = value[0]
    else:
      result[name] = value
  return util.HugeTask.decode_payload(result)
Gets the value for this view as a boolean. (Python 3 only.)
dataset/ETHPy150Open AppScale/appscale/AppServer/google/appengine/ext/mapreduce/test_support.py/decode_task_payload--crossover with--dataset/ETHPy150Open beetbox/beets/beets/util/confit.py/ConfigView.__bool__