'@todo: docstring'

def display(self, **attr):

    S3QuestionTypeAbstractWidget.initDisplay(self, **attr)
    self.field.requires = IS_IN_SET(self.getList())
    value = self.getAnswer()
    valueList = json2list(value)
    self.field.name = self.question.code
    input = CheckboxesWidget.widget(self.field, valueList, **self.attr)
    self.field.name = 'value'
    return self.layout(self.question.name, input, **attr)
