def showConnConfig(connectionList, *args, **keywords):
    dialog = QConnectionDBSetupWindow(**keywords)
    if dialog.exec_() == QtGui.QDialog.Accepted:
        config = {'id': int(dialog.id),
                  'name': str(dialog.nameEdt.text()),
                  'host': str(dialog.hostEdt.text()),
                  'port': int(dialog.portEdt.value()),
                  'user': str(dialog.userEdt.text()),
                  'passwd': str(dialog.passwdEdt.text()),
                  'db': str(dialog.databaseEdt.text())}
        id = connectionList.setConnectionInfo(**config)
        connectionList.setCurrentId(id)
        return True
    else:
        return False
showConnConfig(*args, **keywords) -> None
dataset/ETHPy150Open VisTrails/VisTrails/vistrails/gui/collection/explorer.py/showConnConfig