@login_required
def log_detail(request, slug, id, template='threebot/workflow/log.html'):
    orgs = get_my_orgs(request)
    workflow_log = get_object_or_404(WorkflowLog, id=id)
    workflow = get_object_or_404(Workflow, owner__in=orgs, slug=slug)
    try:
        templates = render_templates(workflow_log, mask=True)
    except Exception, e:
        templates = None

    try:
        outputs = sorted(workflow_log.outputs.iteritems())
    except __HOLE__:
        outputs = None

    return render_to_response(template, {'request': request,
                                         'workflow': workflow,
                                         'workflow_log': workflow_log,
                                         'outputs': outputs,
                                         'templates': templates,
                                        }, context_instance=RequestContext(request))
dataset/ETHPy150Open 3bot/3bot/threebot/views/workflow.py/log_detail