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

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 @todo: remove wrapper .