def CancelJobs(opts, args, cl=None, _stdout_fn=ToStdout, _ask_fn=AskUser):
  if opts.kill:
    action_name = "KILL"
    if not opts.yes_do_it:
      raise errors.OpPrereqError("The --kill option must be confirmed"
                                 " with --yes-do-it", errors.ECODE_INVAL)
  else:
    action_name = "Cancel"
  return _MultiJobAction(opts, args, cl, _stdout_fn, _ask_fn,
                         "%s job(s) listed above?" % action_name,
                         lambda cl, job_id: cl.CancelJob(job_id,
                                                         kill=opts.kill))
Initializer for WSGIHandler.
dataset/ETHPy150Open ganeti/ganeti/lib/client/gnt_job.py/CancelJobs--crossover with--dataset/ETHPy150Open AppScale/appscale/AppServer/google/appengine/tools/devappserver2/wsgi_handler.py/WSGIHandler.__init__