Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(4)  |  Call(4)  |  Derive(0)  |  Import(0)

src/s/a/sahara-2014.1/sahara/api/v11.py   sahara(Download)
def job_list():
    return u.render(jobs=[j.to_dict() for j in api.get_jobs()])
 
 
@rest.post('/jobs')

src/s/a/sahara-HEAD/sahara/api/v11.py   sahara(Download)
def job_list():
    return u.render(jobs=[j.to_dict() for j in api.get_jobs()])
 
 
@rest.post('/jobs')

src/s/a/sahara-2014.1/sahara/service/validations/edp/base.py   sahara(Download)
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)
 

src/s/a/sahara-HEAD/sahara/service/validations/edp/base.py   sahara(Download)
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)