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_builds_of_job(job_label, status=None):
    if status is None:
        job = get_job(job_label)
        return job.builds
    else:
        builds = get_builds_of_job(job_label)
        builds = (b for b in builds.itervalues() if b.status == status)
        return sorted(builds, key=lambda x: x.created_at)
        


src/f/a/fabkins-0.1.3/fabkins/flaskapp.py   fabkins(Download)
        flash(u'The job "%s" does not exist' % job_label, 'alert')
        return redirect(url_for('index'))
    done = services.get_builds_of_job(job_label, status="done") or None
    doing = services.get_builds_of_job(job_label, status="doing") or None
    todo = services.get_builds_of_job(job_label, status="todo") or None
def view_history():
    todo, doing, done = [], [], []
    for l in services.get_all_jobs().iterkeys():
        new_todo = [(l,b) for b in services.get_builds_of_job(l, "todo")]
        new_doing = [(l,b) for b in services.get_builds_of_job(l, "doing")]