def job_list(): return u.render(jobs=[j.to_dict() for j in api.get_jobs()])
def check_job_unique_name(name): if name in [j.name for j in api.get_jobs()]: raise ex.NameAlreadyExistsException("Job with name '%s' " "already exists" % name)
def job_list(): return u.render(jobs=[j.to_dict() for j in api.get_jobs( **u.get_request_args().to_dict())])