def renderVocTermDetail(vocterm): dagtrees = [] if not vocterm.isobsolete and vocterm.dagnodes: # build DAG trees for all the paths dagtrees = DagBuilder.buildDagTrees(vocterm.dagnodes) return render_template('detail/vocterm_detail.html', vocterm = vocterm, dagtrees = dagtrees)