def survey_getAllTranslationsForSeries(series_id):
 table = current.s3db.survey_series
 row = current.db((table.id == series_id)).select(table.template_id, limitby=(0, 1)).first()
 template_id = row.template_id
 return survey_getAllTranslationsForTemplate(template_id)

def survey_getAllTranslationsForSeries ( series_id ) : table = current . s3db . survey_series row = current . db ( ( table . id == series_id ) ) . select ( table . template_id , limitby = ( 0 , 1 ) ) . first ( ) template_id = row . template_id return survey_getAllTranslationsForTemplate ( template_id )
function to return all the translations for the given series .