Package coprs :: Package views :: Package batches_ns :: Module coprs_batches
[hide private]
[frames] | no frames]

Source Code for Module coprs.views.batches_ns.coprs_batches

 1  """ 
 2  Web-UI routes related to build batches 
 3  """ 
 4   
 5  from flask import render_template 
 6  from coprs.logic.batches_logic import BatchesLogic 
 7  from coprs.views.batches_ns import batches_ns 
8 9 10 @batches_ns.route("/detail/<int:batch_id>/") 11 -def coprs_batch_detail(batch_id):
12 """ Print the list (tree) of batches """ 13 chain = BatchesLogic.batch_chain(batch_id) 14 batch = chain[0] 15 deps = chain[1:] 16 return render_template("batches/detail.html", batch=batch, deps=deps)
17