'This will validate the data passed in to the widget
NOTE: Not currently used but will be used when the UI supports the
validation of data entered in to the web form'

def validate(self, valueList, qstn_id):

    if (len(valueList) == 0):
        return self.ANSWER_MISSING
    data = value(valueList, 0)
    if (data is None):
        return self.ANSWER_MISSING
    length = self.get('Length')
    if ((length is not None) and (length(data) > length)):
        return ANSWER_PARTLY_VALID
    return self.ANSWER_VALID
