def add_field(self, base_layout, field, category="", startup_only=False,
                  prefix="", indent=0):
        label_widget = QtGui.QWidget()
        label_layout = QtGui.QHBoxLayout()
        label_layout.setMargin(0)
        label_layout.setSpacing(5)
        label_widget.setLayout(label_layout)

        config_key = "%s%s" % (prefix, field.name)
        if self._temp_configuration.is_unset(config_key):
            config_val = None
        else:
            config_val = self._temp_configuration.get_deep_value(config_key)
        if self._configuration.is_unset(config_key):
            perm_config_val = None
        else:
            perm_config_val = self._configuration.get_deep_value(config_key)

        icon = self.style().standardIcon(QtGui.QStyle.SP_MessageBoxWarning)
        label = QtGui.QLabel()
        label.setPixmap(icon.pixmap(14,14))
        label.setToolTip("This option has been changed for this session")
        label_layout.addWidget(label, 0, QtCore.Qt.AlignCenter)
            
        space = 0
        if not startup_only and config_val == perm_config_val:
            space = (label.sizeHint().width() +
                     label_layout.spacing() * (indent + 1))
            label.hide()
        elif indent > 0:
            space = label_layout.spacing() * indent

        if 0 > space:
            spacer = QtGui.QSpacerItem(space, label.sizeHint().height())
            label_layout.insertSpacerItem(0, spacer)

        config_desc = find_simpledoc(config_key)
        widget_type = field.widget_type
        if widget_type is None:
            if field.val_type == bool:
                widget_type = "checkbox"
            elif field.val_type == ConfigPath:
                widget_type = "pathedit"
            else:
                widget_type = "lineedit"

        if widget_type == "combo":
            widget = QConfigurationComboBox(config_key, field,
                                            self.field_changed)
        elif widget_type == "lineedit":
            widget = QConfigurationLineEdit(config_key, field,
                                            self.field_changed)
        elif widget_type == "pathedit":
            widget = QConfigurationPathEdit(config_key, field,
                                            self.field_changed)
        elif widget_type == "thumbnailcache":
            widget = QConfigurationThumbnailCache(config_key, field,
                                                  self.field_changed)
        elif widget_type == "linuxext":
            widget = QConfigurationLinuxHandler(config_key, field,
                                                self.field_changed)
        else:
            config_val = bool(config_val)
            widget = QConfigurationCheckBox(config_key, field,
                                            self.field_changed)
        widget.set_value(config_val, False)

        label_text = widget.get_label_text()
        if not label_text and category:
            label_text = category
        if label_text:
            label = QtGui.QLabel(label_text + ":")
            label_layout.addWidget(label)

        base_layout.addRow(label_widget, widget)
        self._field_layouts[config_key] = (base_layout, base_layout.rowCount())
dataset/ETHPy150Open VisTrails/VisTrails/vistrails/gui/configuration.py/QConfigurationPane.add_field/swapped operands of `>`