def to_html(self):
        s = []
        for v, caption in self.choices:
            args = {'value' : v}
            kwargs = self.kwargs.copy()
            args['name'] = kwargs.pop('name')
            args['id'] = kwargs.pop('id')
            if isinstance(self.value, (tuple, list)):
                if self.value in v:
                    args['checked'] = None
            else:
                if v == self.value:
                    args['checked'] = None
            r = str(Checkbox(**args))
            s.append(str(Tag('label', r+caption, **kwargs)))
        return '\n'.join(s)
dataset/ETHPy150Open limodou/uliweb/uliweb/form/widgets.py/CheckboxSelect.to_html/swapped operands of `in`