forked from shaba/openuds
fixed actor log level
This commit is contained in:
parent
4ca387c370
commit
2c10e9445b
@ -55,14 +55,14 @@ class UDSConfigDialog(QtGui.QDialog):
|
|||||||
self.ui.host.setText(data.get('host', ''))
|
self.ui.host.setText(data.get('host', ''))
|
||||||
self.ui.masterKey.setText(data.get('masterKey', ''))
|
self.ui.masterKey.setText(data.get('masterKey', ''))
|
||||||
self.ui.useSSl.setCurrentIndex(1 if data.get('ssl', False) is True else 0)
|
self.ui.useSSl.setCurrentIndex(1 if data.get('ssl', False) is True else 0)
|
||||||
self.ui.logLevelComboBox.setCurrentIndex(int(data.get('logLevel', '10000')) / 10000 - 2)
|
self.ui.logLevelComboBox.setCurrentIndex(int(data.get('logLevel', '10000')) / 10000 - 1)
|
||||||
|
|
||||||
def _getCfg(self):
|
def _getCfg(self):
|
||||||
return {
|
return {
|
||||||
'host': six.text_type(self.ui.host.text()),
|
'host': six.text_type(self.ui.host.text()),
|
||||||
'masterKey': six.text_type(self.ui.masterKey.text()),
|
'masterKey': six.text_type(self.ui.masterKey.text()),
|
||||||
'ssl': self.ui.useSSl.currentIndex() == 1,
|
'ssl': self.ui.useSSl.currentIndex() == 1,
|
||||||
'logLevel': (self.ui.logLevelComboBox.currentIndex() + 2) * 10000
|
'logLevel': (self.ui.logLevelComboBox.currentIndex() + 1) * 10000
|
||||||
}
|
}
|
||||||
|
|
||||||
def textChanged(self):
|
def textChanged(self):
|
||||||
|
@ -2,8 +2,7 @@
|
|||||||
|
|
||||||
# Resource object code
|
# Resource object code
|
||||||
#
|
#
|
||||||
# Created: Mon Apr 27 22:05:02 2015
|
# Created by: The Resource Compiler for PyQt4 (Qt v4.8.7)
|
||||||
# by: The Resource Compiler for PyQt (Qt v4.8.6)
|
|
||||||
#
|
#
|
||||||
# WARNING! All changes made in this file will be lost!
|
# WARNING! All changes made in this file will be lost!
|
||||||
|
|
||||||
|
@ -2,8 +2,7 @@
|
|||||||
|
|
||||||
# Form implementation generated from reading ui file 'about-dialog.ui'
|
# Form implementation generated from reading ui file 'about-dialog.ui'
|
||||||
#
|
#
|
||||||
# Created: Mon Apr 27 22:05:02 2015
|
# Created by: PyQt4 UI code generator 4.12.1
|
||||||
# by: PyQt4 UI code generator 4.11.2
|
|
||||||
#
|
#
|
||||||
# WARNING! All changes made in this file will be lost!
|
# WARNING! All changes made in this file will be lost!
|
||||||
|
|
||||||
@ -34,8 +33,8 @@ class Ui_UDSAboutDialog(object):
|
|||||||
UDSAboutDialog.setLocale(QtCore.QLocale(QtCore.QLocale.English, QtCore.QLocale.UnitedStates))
|
UDSAboutDialog.setLocale(QtCore.QLocale(QtCore.QLocale.English, QtCore.QLocale.UnitedStates))
|
||||||
UDSAboutDialog.setModal(True)
|
UDSAboutDialog.setModal(True)
|
||||||
self.vboxlayout = QtGui.QVBoxLayout(UDSAboutDialog)
|
self.vboxlayout = QtGui.QVBoxLayout(UDSAboutDialog)
|
||||||
self.vboxlayout.setSpacing(9)
|
|
||||||
self.vboxlayout.setMargin(9)
|
self.vboxlayout.setMargin(9)
|
||||||
|
self.vboxlayout.setSpacing(9)
|
||||||
self.vboxlayout.setObjectName(_fromUtf8("vboxlayout"))
|
self.vboxlayout.setObjectName(_fromUtf8("vboxlayout"))
|
||||||
self.LogoLabel = QtGui.QLabel(UDSAboutDialog)
|
self.LogoLabel = QtGui.QLabel(UDSAboutDialog)
|
||||||
self.LogoLabel.setObjectName(_fromUtf8("LogoLabel"))
|
self.LogoLabel.setObjectName(_fromUtf8("LogoLabel"))
|
||||||
@ -55,8 +54,8 @@ class Ui_UDSAboutDialog(object):
|
|||||||
self.aboutTab = QtGui.QWidget()
|
self.aboutTab = QtGui.QWidget()
|
||||||
self.aboutTab.setObjectName(_fromUtf8("aboutTab"))
|
self.aboutTab.setObjectName(_fromUtf8("aboutTab"))
|
||||||
self.vboxlayout1 = QtGui.QVBoxLayout(self.aboutTab)
|
self.vboxlayout1 = QtGui.QVBoxLayout(self.aboutTab)
|
||||||
self.vboxlayout1.setSpacing(6)
|
|
||||||
self.vboxlayout1.setMargin(9)
|
self.vboxlayout1.setMargin(9)
|
||||||
|
self.vboxlayout1.setSpacing(6)
|
||||||
self.vboxlayout1.setObjectName(_fromUtf8("vboxlayout1"))
|
self.vboxlayout1.setObjectName(_fromUtf8("vboxlayout1"))
|
||||||
self.aboutBrowser = QtGui.QTextBrowser(self.aboutTab)
|
self.aboutBrowser = QtGui.QTextBrowser(self.aboutTab)
|
||||||
self.aboutBrowser.setOpenExternalLinks(True)
|
self.aboutBrowser.setOpenExternalLinks(True)
|
||||||
@ -66,8 +65,8 @@ class Ui_UDSAboutDialog(object):
|
|||||||
self.authorsTab = QtGui.QWidget()
|
self.authorsTab = QtGui.QWidget()
|
||||||
self.authorsTab.setObjectName(_fromUtf8("authorsTab"))
|
self.authorsTab.setObjectName(_fromUtf8("authorsTab"))
|
||||||
self.vboxlayout2 = QtGui.QVBoxLayout(self.authorsTab)
|
self.vboxlayout2 = QtGui.QVBoxLayout(self.authorsTab)
|
||||||
self.vboxlayout2.setSpacing(6)
|
|
||||||
self.vboxlayout2.setMargin(9)
|
self.vboxlayout2.setMargin(9)
|
||||||
|
self.vboxlayout2.setSpacing(6)
|
||||||
self.vboxlayout2.setObjectName(_fromUtf8("vboxlayout2"))
|
self.vboxlayout2.setObjectName(_fromUtf8("vboxlayout2"))
|
||||||
self.authorsBrowser = QtGui.QTextBrowser(self.authorsTab)
|
self.authorsBrowser = QtGui.QTextBrowser(self.authorsTab)
|
||||||
self.authorsBrowser.setOpenExternalLinks(True)
|
self.authorsBrowser.setOpenExternalLinks(True)
|
||||||
@ -77,8 +76,8 @@ class Ui_UDSAboutDialog(object):
|
|||||||
self.licenseTab = QtGui.QWidget()
|
self.licenseTab = QtGui.QWidget()
|
||||||
self.licenseTab.setObjectName(_fromUtf8("licenseTab"))
|
self.licenseTab.setObjectName(_fromUtf8("licenseTab"))
|
||||||
self.vboxlayout3 = QtGui.QVBoxLayout(self.licenseTab)
|
self.vboxlayout3 = QtGui.QVBoxLayout(self.licenseTab)
|
||||||
self.vboxlayout3.setSpacing(6)
|
|
||||||
self.vboxlayout3.setMargin(9)
|
self.vboxlayout3.setMargin(9)
|
||||||
|
self.vboxlayout3.setSpacing(6)
|
||||||
self.vboxlayout3.setObjectName(_fromUtf8("vboxlayout3"))
|
self.vboxlayout3.setObjectName(_fromUtf8("vboxlayout3"))
|
||||||
self.licenseBrowser = QtGui.QTextBrowser(self.licenseTab)
|
self.licenseBrowser = QtGui.QTextBrowser(self.licenseTab)
|
||||||
self.licenseBrowser.setObjectName(_fromUtf8("licenseBrowser"))
|
self.licenseBrowser.setObjectName(_fromUtf8("licenseBrowser"))
|
||||||
@ -92,7 +91,7 @@ class Ui_UDSAboutDialog(object):
|
|||||||
self.vboxlayout.addWidget(self.buttonBox)
|
self.vboxlayout.addWidget(self.buttonBox)
|
||||||
|
|
||||||
self.retranslateUi(UDSAboutDialog)
|
self.retranslateUi(UDSAboutDialog)
|
||||||
self.tabWidget.setCurrentIndex(0)
|
self.tabWidget.setCurrentIndex(2)
|
||||||
QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("clicked(QAbstractButton*)")), UDSAboutDialog.closeDialog)
|
QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("clicked(QAbstractButton*)")), UDSAboutDialog.closeDialog)
|
||||||
QtCore.QMetaObject.connectSlotsByName(UDSAboutDialog)
|
QtCore.QMetaObject.connectSlotsByName(UDSAboutDialog)
|
||||||
|
|
||||||
@ -106,7 +105,7 @@ class Ui_UDSAboutDialog(object):
|
|||||||
"p, li { white-space: pre-wrap; }\n"
|
"p, li { white-space: pre-wrap; }\n"
|
||||||
"</style></head><body style=\" font-family:\'Verdana\'; font-size:9pt; font-weight:400; font-style:normal;\">\n"
|
"</style></head><body style=\" font-family:\'Verdana\'; font-size:9pt; font-weight:400; font-style:normal;\">\n"
|
||||||
"<p style=\"-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:\'Sans Serif\';\"><br /></p>\n"
|
"<p style=\"-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:\'Sans Serif\';\"><br /></p>\n"
|
||||||
"<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-family:\'Sans Serif\'; font-weight:600;\">(c) 2014, Virtual Cable S.L.U.</span></p>\n"
|
"<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-family:\'Sans Serif\'; font-weight:600;\">(c) 2012-2016, Virtual Cable S.L.U.</span></p>\n"
|
||||||
"<p style=\"-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:\'Sans Serif\'; font-style:italic;\"><br /></p>\n"
|
"<p style=\"-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:\'Sans Serif\'; font-style:italic;\"><br /></p>\n"
|
||||||
"<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><a href=\"http://www.udsenterprise.com\"><span style=\" font-family:\'MS Shell Dlg 2\'; font-size:8pt; text-decoration: underline; color:#0000ff;\">http://www.udsenterprise.com</span></a></p>\n"
|
"<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><a href=\"http://www.udsenterprise.com\"><span style=\" font-family:\'MS Shell Dlg 2\'; font-size:8pt; text-decoration: underline; color:#0000ff;\">http://www.udsenterprise.com</span></a></p>\n"
|
||||||
"<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><a href=\"http://www.openuds.org\"><span style=\" font-family:\'MS Shell Dlg 2\'; font-size:8pt; text-decoration: underline; color:#0000ff;\">http://www.openuds.org</span></a></p>\n"
|
"<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><a href=\"http://www.openuds.org\"><span style=\" font-family:\'MS Shell Dlg 2\'; font-size:8pt; text-decoration: underline; color:#0000ff;\">http://www.openuds.org</span></a></p>\n"
|
||||||
@ -122,7 +121,7 @@ class Ui_UDSAboutDialog(object):
|
|||||||
"<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n"
|
"<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n"
|
||||||
"p, li { white-space: pre-wrap; }\n"
|
"p, li { white-space: pre-wrap; }\n"
|
||||||
"</style></head><body style=\" font-family:\'Verdana\'; font-size:9pt; font-weight:400; font-style:normal;\">\n"
|
"</style></head><body style=\" font-family:\'Verdana\'; font-size:9pt; font-weight:400; font-style:normal;\">\n"
|
||||||
"<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-family:\'MS Shell Dlg 2\'; font-size:8pt;\">Copyright (c) 2014 Virtual Cable S.L.</span></p>\n"
|
"<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-family:\'MS Shell Dlg 2\'; font-size:8pt;\">Copyright (c) 2012-2016 Virtual Cable S.L.</span></p>\n"
|
||||||
"<p style=\"-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:\'MS Shell Dlg 2\'; font-size:8pt;\"><br /></p>\n"
|
"<p style=\"-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:\'MS Shell Dlg 2\'; font-size:8pt;\"><br /></p>\n"
|
||||||
"<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-family:\'MS Shell Dlg 2\'; font-size:8pt;\">All rights reserved.</span></p>\n"
|
"<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-family:\'MS Shell Dlg 2\'; font-size:8pt;\">All rights reserved.</span></p>\n"
|
||||||
"<p style=\"-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:\'MS Shell Dlg 2\'; font-size:8pt;\"><br /></p>\n"
|
"<p style=\"-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:\'MS Shell Dlg 2\'; font-size:8pt;\"><br /></p>\n"
|
||||||
|
@ -2,8 +2,7 @@
|
|||||||
|
|
||||||
# Form implementation generated from reading ui file 'message-dialog.ui'
|
# Form implementation generated from reading ui file 'message-dialog.ui'
|
||||||
#
|
#
|
||||||
# Created: Mon Apr 27 22:05:02 2015
|
# Created by: PyQt4 UI code generator 4.12.1
|
||||||
# by: PyQt4 UI code generator 4.11.2
|
|
||||||
#
|
#
|
||||||
# WARNING! All changes made in this file will be lost!
|
# WARNING! All changes made in this file will be lost!
|
||||||
|
|
||||||
|
@ -121,7 +121,7 @@
|
|||||||
<x>20</x>
|
<x>20</x>
|
||||||
<y>20</y>
|
<y>20</y>
|
||||||
<width>361</width>
|
<width>361</width>
|
||||||
<height>131</height>
|
<height>166</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<layout class="QFormLayout" name="formLayout">
|
<layout class="QFormLayout" name="formLayout">
|
||||||
@ -205,7 +205,7 @@
|
|||||||
<item row="3" column="1">
|
<item row="3" column="1">
|
||||||
<widget class="QComboBox" name="logLevelComboBox">
|
<widget class="QComboBox" name="logLevelComboBox">
|
||||||
<property name="currentIndex">
|
<property name="currentIndex">
|
||||||
<number>1</number>
|
<number>3</number>
|
||||||
</property>
|
</property>
|
||||||
<property name="frame">
|
<property name="frame">
|
||||||
<bool>true</bool>
|
<bool>true</bool>
|
||||||
@ -220,6 +220,11 @@
|
|||||||
<string notr="true">INFO</string>
|
<string notr="true">INFO</string>
|
||||||
</property>
|
</property>
|
||||||
</item>
|
</item>
|
||||||
|
<item>
|
||||||
|
<property name="text">
|
||||||
|
<string>WARN</string>
|
||||||
|
</property>
|
||||||
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string notr="true">ERROR</string>
|
<string notr="true">ERROR</string>
|
||||||
|
@ -2,8 +2,7 @@
|
|||||||
|
|
||||||
# Form implementation generated from reading ui file 'setup-dialog.ui'
|
# Form implementation generated from reading ui file 'setup-dialog.ui'
|
||||||
#
|
#
|
||||||
# Created: Mon Apr 27 22:05:03 2015
|
# Created by: PyQt4 UI code generator 4.12.1
|
||||||
# by: PyQt4 UI code generator 4.11.2
|
|
||||||
#
|
#
|
||||||
# WARNING! All changes made in this file will be lost!
|
# WARNING! All changes made in this file will be lost!
|
||||||
|
|
||||||
@ -63,7 +62,7 @@ class Ui_UdsActorSetupDialog(object):
|
|||||||
self.cancelButton.setSizePolicy(sizePolicy)
|
self.cancelButton.setSizePolicy(sizePolicy)
|
||||||
self.cancelButton.setObjectName(_fromUtf8("cancelButton"))
|
self.cancelButton.setObjectName(_fromUtf8("cancelButton"))
|
||||||
self.layoutWidget = QtGui.QWidget(UdsActorSetupDialog)
|
self.layoutWidget = QtGui.QWidget(UdsActorSetupDialog)
|
||||||
self.layoutWidget.setGeometry(QtCore.QRect(20, 20, 361, 131))
|
self.layoutWidget.setGeometry(QtCore.QRect(20, 20, 361, 166))
|
||||||
self.layoutWidget.setObjectName(_fromUtf8("layoutWidget"))
|
self.layoutWidget.setObjectName(_fromUtf8("layoutWidget"))
|
||||||
self.formLayout = QtGui.QFormLayout(self.layoutWidget)
|
self.formLayout = QtGui.QFormLayout(self.layoutWidget)
|
||||||
self.formLayout.setFieldGrowthPolicy(QtGui.QFormLayout.AllNonFixedFieldsGrow)
|
self.formLayout.setFieldGrowthPolicy(QtGui.QFormLayout.AllNonFixedFieldsGrow)
|
||||||
@ -102,13 +101,14 @@ class Ui_UdsActorSetupDialog(object):
|
|||||||
self.logLevelComboBox.addItem(_fromUtf8(""))
|
self.logLevelComboBox.addItem(_fromUtf8(""))
|
||||||
self.logLevelComboBox.setItemText(1, _fromUtf8("INFO"))
|
self.logLevelComboBox.setItemText(1, _fromUtf8("INFO"))
|
||||||
self.logLevelComboBox.addItem(_fromUtf8(""))
|
self.logLevelComboBox.addItem(_fromUtf8(""))
|
||||||
self.logLevelComboBox.setItemText(2, _fromUtf8("ERROR"))
|
|
||||||
self.logLevelComboBox.addItem(_fromUtf8(""))
|
self.logLevelComboBox.addItem(_fromUtf8(""))
|
||||||
self.logLevelComboBox.setItemText(3, _fromUtf8("FATAL"))
|
self.logLevelComboBox.setItemText(3, _fromUtf8("ERROR"))
|
||||||
|
self.logLevelComboBox.addItem(_fromUtf8(""))
|
||||||
|
self.logLevelComboBox.setItemText(4, _fromUtf8("FATAL"))
|
||||||
self.formLayout.setWidget(3, QtGui.QFormLayout.FieldRole, self.logLevelComboBox)
|
self.formLayout.setWidget(3, QtGui.QFormLayout.FieldRole, self.logLevelComboBox)
|
||||||
|
|
||||||
self.retranslateUi(UdsActorSetupDialog)
|
self.retranslateUi(UdsActorSetupDialog)
|
||||||
self.logLevelComboBox.setCurrentIndex(1)
|
self.logLevelComboBox.setCurrentIndex(3)
|
||||||
QtCore.QObject.connect(self.host, QtCore.SIGNAL(_fromUtf8("textChanged(QString)")), UdsActorSetupDialog.textChanged)
|
QtCore.QObject.connect(self.host, QtCore.SIGNAL(_fromUtf8("textChanged(QString)")), UdsActorSetupDialog.textChanged)
|
||||||
QtCore.QObject.connect(self.masterKey, QtCore.SIGNAL(_fromUtf8("textChanged(QString)")), UdsActorSetupDialog.textChanged)
|
QtCore.QObject.connect(self.masterKey, QtCore.SIGNAL(_fromUtf8("textChanged(QString)")), UdsActorSetupDialog.textChanged)
|
||||||
QtCore.QObject.connect(self.cancelButton, QtCore.SIGNAL(_fromUtf8("pressed()")), UdsActorSetupDialog.cancelAndDiscard)
|
QtCore.QObject.connect(self.cancelButton, QtCore.SIGNAL(_fromUtf8("pressed()")), UdsActorSetupDialog.cancelAndDiscard)
|
||||||
@ -139,6 +139,7 @@ class Ui_UdsActorSetupDialog(object):
|
|||||||
self.useSSl.setItemText(0, _translate("UdsActorSetupDialog", "Do not use SSL", None))
|
self.useSSl.setItemText(0, _translate("UdsActorSetupDialog", "Do not use SSL", None))
|
||||||
self.useSSl.setItemText(1, _translate("UdsActorSetupDialog", "Use SSL", None))
|
self.useSSl.setItemText(1, _translate("UdsActorSetupDialog", "Use SSL", None))
|
||||||
self.logLevelLabel.setText(_translate("UdsActorSetupDialog", "Log Level", None))
|
self.logLevelLabel.setText(_translate("UdsActorSetupDialog", "Log Level", None))
|
||||||
|
self.logLevelComboBox.setItemText(2, _translate("UdsActorSetupDialog", "WARN", None))
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
|
Loading…
Reference in New Issue
Block a user