Exemplo n.º 1
0
def show_job(job_id):
    job = db.select('jobs', where='id = $job_id', vars=locals())[0]
    builds = db.select('builds',
                       where='job_id=$job_id',
                       order='id asc',
                       vars=locals()).list()
    pusher_key = pusher.url2options(os.environ['PUSHER_URL'])['key']
    return render_template("job.html", **locals())
Exemplo n.º 2
0
def show_job(job_id):
    job = db.select('jobs', where='id = $job_id', vars=locals())[0]
    builds = db.select('builds', where='job_id=$job_id', order='id asc', vars=locals()).list()
    pusher_key = pusher.url2options(os.environ['PUSHER_URL'])['key']
    return render_template("job.html", **locals())
Exemplo n.º 3
0
 def get_pusher_options(self):
     import pusher
     return pusher.url2options(self.PUSHER_URL)