def survey_getAllQuestionsForSeries(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
 questions = survey_getAllQuestionsForTemplate(template_id)
 return questions

def survey_getAllQuestionsForSeries ( 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 questions = survey_getAllQuestionsForTemplate ( template_id ) return questions
function to return the list of questions for the given series the questions are returned in to order of their position in the template .