def __init__(self, type, question_id, answerList):

        S3AbstractAnalysis.__init__(self, type, question_id, answerList)
        childWidget = S3QuestionTypeLinkWidget(question_id)
        trueType = childWidget.get("Type")
        for answer in self.answerList:
            if self.valid(answer):
                try:
                    self.valueList.append(trueType.castRawAnswer(answer["complete_id"],
                                                                 answer["value"]))
                except:
                    pass
        self.widget = survey_analysis_type[trueType](question_id, self.answerList)

    # -------------------------------------------------------------------------
@todo: docstring
dataset/ETHPy150Open sahana/eden/modules/s3db/survey.py/S3GridChildAnalysis.__init__