def survey_template_represent(template_id, row=None):

    if row:
        return row.name
    elif not template_id:
        return current.messages["NONE"]

    table = current.s3db.survey_template
    query = (table.id == template_id)
    record = current.db(query).select(table.name,
                                      limitby=(0, 1)).first()
    try:
        return record.name
    except AttributeError:
        return current.messages.UNKNOWN_OPT

# =============================================================================
initValues(axisValues: list)
dataset/ETHPy150Open sahana/eden/modules/s3db/survey.py/survey_template_represent--crossover with--dataset/ETHPy150Open VisTrails/VisTrails/contrib/cdat/cdat_window.py/QAxisComboWidget.initValues