def _render_job_name(self, job):
    ctx = {}
    for o in job.tool.options:
        ctx[o.name] = o
    name = job.name
    if (not name):
        name = self.name
    if (not name):
        name = job.tool.name
    return render_template(('%s%s' % (('' if (not self.prefix) else self.prefix), name)), **ctx)
def _render_job_name(self, job):
    ctx = {}
    for o in job.tool.options:
        ctx[o.name] = o
    name = job.name
    if (not name):
        name = self.name
    if (not name):
        name = job.tool.name
    return render_template(('%s%s' % (( if (not self.prefix) else self.prefix), name)), **ctx)