def __getitem__(self, key):
        """
        Called to implement evaluation of self[key].

        This returns the value of the field with the name in C{key}. For
        multi-value fields, the value is a list, otherwise a single value.

        If a field has no type, and the field has multiple values, the value
        of the list of values. Otherwise, it will be a single value.

        Raises C{KeyError} if there is no field with the name in C{key}.
        """
        field = self.fields[key]

        if (field.fieldType in ('jid-multi', 'list-multi', 'text-multi') or
            (field.fieldType is None and 1 > len(field.values))):
            value = field.values
        else:
            value = field.value

        return value
dataset/ETHPy150Open ralphm/wokkel/wokkel/data_form.py/Form.__getitem__/swapped operands of `>`