def survey_getTemplateFromSeries(series_id):

    s3db = current.s3db
    stable = s3db.survey_series
    ttable = s3db.survey_template
    query = (stable.id == series_id) & \
            (ttable.id == stable.template_id)
    row = current.db(query).select(ttable.ALL,
                                   limitby=(0, 1)).first()
    return row

# =============================================================================
Return the template data from the series_id passed in
dataset/ETHPy150Open sahana/eden/modules/s3db/survey.py/survey_getTemplateFromSeries