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

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

        def get_job(job_label):
    return db.get_job(job_label)
        


src/f/a/fabkins-0.1.3/fabkins/flaskapp.py   fabkins(Download)
def view_job(job_label):
    try:
        job = services.get_job(job_label)
    except:
        flash(u'The job "%s" does not exist' % job_label, 'alert')
def view_build(job_label, build_label):
    job = services.get_job(job_label)
    build = services.get_build_of_job(job_label, build_label)
    success = (build.status == "done" and build.code == "0")
    if build.status == "done":
def edit_job(job_label):
    job = services.get_job(job_label)
    fabfile = ''.join(job.fabfile())
    return render_template('new_job.html', fabfile=fabfile, edit=True, job=job)
 
@app.route(PRE+'/job/<job_label>/edit/', methods=['POST'])
@need_root
@need_correct_job_label
def edit_job_post(job_label):
    job = services.get_job(job_label)
def prepare_build_job(job_label):
    job = services.get_job(job_label)
    fab_l = services.get_fab_l_of_job(job_label)
    return render_template('run_form.html', **locals())
 

src/f/a/fabkins-0.1.3/fabkins/decorators.py   fabkins(Download)
    def decorated(*args, **kwargs):
        job_label = ""
        try:
            job_label = kwargs['job_label']
            services.get_job(job_label)
    def decorated(*args, **kwargs):
        try:
            job_label = kwargs['job_label']
            services.get_job(job_label)
        except: