def repr(self, value=None):
        if value == None:
            value = self.getAnswer()
        return value

    # -------------------------------------------------------------------------
function to format the answer, which can be passed in
dataset/ETHPy150Open sahana/eden/modules/s3db/survey.py/S3QuestionTypeAbstractWidget.repr