Removed support for obsolete eric6 versions.

Sun, 25 Apr 2021 17:41:32 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sun, 25 Apr 2021 17:41:32 +0200
changeset 85
1ee3f393af03
parent 84
044df16e55aa
child 86
620022b14cb4

Removed support for obsolete eric6 versions.

ChangeLog file | annotate | diff | comparison | revisions
MqttMonitor/MqttMonitorWidget.py file | annotate | diff | comparison | revisions
PluginMqttMonitor.epj file | annotate | diff | comparison | revisions
PluginMqttMonitor.py file | annotate | diff | comparison | revisions
--- a/ChangeLog	Wed Dec 30 11:02:05 2020 +0100
+++ b/ChangeLog	Sun Apr 25 17:41:32 2021 +0200
@@ -1,5 +1,8 @@
 ChangeLog
 ---------
+Version 3.0.0:
+- removed support for obsolete eric6 versions
+
 Version 2.1.0:
 - changed exec_() into exec()
 
--- a/MqttMonitor/MqttMonitorWidget.py	Wed Dec 30 11:02:05 2020 +0100
+++ b/MqttMonitor/MqttMonitorWidget.py	Sun Apr 25 17:41:32 2021 +0200
@@ -71,11 +71,7 @@
         self.__messagesQosFormat.setFontItalic(True)
         
         self.messagesSearchWidget.attachTextEdit(self.messagesEdit)
-        try:
-            self.messagesSearchWidget.setWidthForHeight(False)
-        except AttributeError:
-            # eric < 18.10
-            pass
+        self.messagesSearchWidget.setWidthForHeight(False)
         
         self.__isAlternate = False
         
@@ -101,11 +97,7 @@
         }
         
         self.logSearchWidget.attachTextEdit(self.logEdit)
-        try:
-            self.logSearchWidget.setWidthForHeight(False)
-        except AttributeError:
-            # eric < 18.10
-            pass
+        self.logSearchWidget.setWidthForHeight(False)
         
         self.brokerWidget.setCurrentIndex(0)
         
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/PluginMqttMonitor.epj	Sun Apr 25 17:41:32 2021 +0200
@@ -0,0 +1,255 @@
+{
+  "header": {
+    "comment": "eric project file for project PluginMqttMonitor",
+    "copyright": "Copyright (C) 2021 Detlev Offenbach, detlev@die-offenbachs.de"
+  },
+  "project": {
+    "AUTHOR": "Detlev Offenbach",
+    "CHECKERSPARMS": {
+      "Pep8Checker": {
+        "AnnotationsChecker": {
+          "MaximumComplexity": 3,
+          "MinimumCoverage": 75
+        },
+        "BlankLines": [
+          2,
+          1
+        ],
+        "BuiltinsChecker": {
+          "bytes": [
+            "unicode"
+          ],
+          "chr": [
+            "unichr"
+          ],
+          "str": [
+            "unicode"
+          ]
+        },
+        "CommentedCodeChecker": {
+          "Aggressive": false
+        },
+        "CopyrightAuthor": "",
+        "CopyrightMinFileSize": 0,
+        "DocstringType": "eric",
+        "EnabledCheckerCategories": "C, D, E, M, N, S, W",
+        "ExcludeFiles": "*/Ui_*.py, */*_rc.py",
+        "ExcludeMessages": "C101,E265,E266,E305,E402,M201,M811,N802,N803,N807,N808,N821,W293,W504",
+        "FixCodes": "",
+        "FixIssues": false,
+        "FutureChecker": "",
+        "HangClosing": false,
+        "IncludeMessages": "",
+        "LineComplexity": 20,
+        "LineComplexityScore": 10,
+        "MaxCodeComplexity": 10,
+        "MaxDocLineLength": 79,
+        "MaxLineLength": 79,
+        "NoFixCodes": "E501",
+        "RepeatMessages": true,
+        "SecurityChecker": {
+          "CheckTypedException": false,
+          "HardcodedTmpDirectories": [
+            "/tmp",
+            "/var/tmp",
+            "/dev/shm",
+            "~/tmp"
+          ],
+          "InsecureHashes": [
+            "md4",
+            "md5",
+            "sha",
+            "sha1"
+          ],
+          "InsecureSslProtocolVersions": [
+            "PROTOCOL_SSLv2",
+            "SSLv2_METHOD",
+            "SSLv23_METHOD",
+            "PROTOCOL_SSLv3",
+            "PROTOCOL_TLSv1",
+            "SSLv3_METHOD",
+            "TLSv1_METHOD"
+          ],
+          "WeakKeySizeDsaHigh": "1024",
+          "WeakKeySizeDsaMedium": "2048",
+          "WeakKeySizeEcHigh": "160",
+          "WeakKeySizeEcMedium": "224",
+          "WeakKeySizeRsaHigh": "1024",
+          "WeakKeySizeRsaMedium": "2048"
+        },
+        "ShowIgnored": false,
+        "ValidEncodings": "latin-1, utf-8"
+      }
+    },
+    "DESCRIPTION": "Plug-in implementing a tool to connect to a MQTT broker, subscribe to topics, present received messages and publish messages.\n\nNote: The paho-mqtt Python package must be installed. ",
+    "DOCSTRING": "",
+    "DOCUMENTATIONPARMS": {
+      "ERIC4DOC": {
+        "cssFile": "%PYTHON%/eric6/CSSs/default.css",
+        "ignoreDirectories": [
+          ".hg",
+          ".eric6project",
+          ".ropeproject"
+        ],
+        "ignoreFilePatterns": [
+          "Ui_*.py"
+        ],
+        "outputDirectory": "MqttMonitor/Documentation/source",
+        "qtHelpEnabled": false,
+        "useRecursion": true
+      }
+    },
+    "EMAIL": "detlev@die-offenbachs.de",
+    "EOL": 1,
+    "FILETYPES": {
+      "*.e4p": "OTHERS",
+      "*.idl": "INTERFACES",
+      "*.md": "OTHERS",
+      "*.proto": "PROTOCOLS",
+      "*.py": "SOURCES",
+      "*.py3": "SOURCES",
+      "*.pyw": "SOURCES",
+      "*.pyw3": "SOURCES",
+      "*.qm": "TRANSLATIONS",
+      "*.qrc": "RESOURCES",
+      "*.rst": "OTHERS",
+      "*.ts": "TRANSLATIONS",
+      "*.txt": "OTHERS",
+      "*.ui": "FORMS",
+      "GNUmakefile": "OTHERS",
+      "Makefile": "OTHERS",
+      "README": "OTHERS",
+      "README.*": "OTHERS",
+      "Ui_*.py": "__IGNORE__",
+      "makefile": "OTHERS"
+    },
+    "FORMS": [
+      "MqttMonitor/MqttConnectionOptionsDialog.ui",
+      "MqttMonitor/MqttConnectionProfilesDialog.ui",
+      "MqttMonitor/MqttMonitorWidget.ui"
+    ],
+    "HASH": "8b864e3e4a3495e242eae3cb3ef4dc8522bf6ce7",
+    "IDLPARAMS": {
+      "DefinedNames": [],
+      "IncludeDirs": [],
+      "UndefinedNames": []
+    },
+    "INTERFACES": [],
+    "LEXERASSOCS": {},
+    "MAINSCRIPT": "PluginMqttMonitor.py",
+    "MAKEPARAMS": {
+      "MakeEnabled": false,
+      "MakeExecutable": "",
+      "MakeFile": "",
+      "MakeParameters": "",
+      "MakeTarget": "",
+      "MakeTestOnly": true
+    },
+    "MIXEDLANGUAGE": false,
+    "OTHERS": [
+      ".hgignore",
+      "ChangeLog",
+      "MqttMonitor/Documentation/LICENSE.GPL3",
+      "MqttMonitor/Documentation/source",
+      "MqttMonitor/icons/connectionOptions-dark.svg",
+      "MqttMonitor/icons/connectionOptions-light.svg",
+      "MqttMonitor/icons/mqtt22-dark.svg",
+      "MqttMonitor/icons/mqtt22-light.svg",
+      "MqttMonitor/icons/mqtt48-dark.svg",
+      "MqttMonitor/icons/mqtt48-light.svg",
+      "MqttMonitor/icons/profiles-dark.svg",
+      "MqttMonitor/icons/profiles-light.svg",
+      "MqttMonitor/icons/quickopen-dark.svg",
+      "MqttMonitor/icons/quickopen-light.svg",
+      "PKGLIST",
+      "PluginMqttMonitor.e4p",
+      "PluginMqttMonitor.zip",
+      "PluginMqttMonitor.epj"
+    ],
+    "OTHERTOOLSPARMS": {},
+    "PACKAGERSPARMS": {},
+    "PROGLANGUAGE": "Python3",
+    "PROJECTTYPE": "E6Plugin",
+    "PROJECTTYPESPECIFICDATA": {},
+    "PROTOCOLS": [],
+    "RCCPARAMS": {
+      "CompressLevel": 0,
+      "CompressionDisable": false,
+      "CompressionThreshold": 70,
+      "PathPrefix": ""
+    },
+    "RESOURCES": [],
+    "SOURCES": [
+      "MqttMonitor/MqttClient.py",
+      "MqttMonitor/MqttConnectionOptionsDialog.py",
+      "MqttMonitor/MqttConnectionProfilesDialog.py",
+      "MqttMonitor/MqttMonitorWidget.py",
+      "MqttMonitor/__init__.py",
+      "PluginMqttMonitor.py",
+      "__init__.py"
+    ],
+    "SPELLEXCLUDES": "",
+    "SPELLLANGUAGE": "en",
+    "SPELLWORDS": "",
+    "TRANSLATIONEXCEPTIONS": [],
+    "TRANSLATIONPATTERN": "MqttMonitor/i18n/mqttmonitor_%language%.ts",
+    "TRANSLATIONS": [
+      "MqttMonitor/i18n/mqttmonitor_de.qm",
+      "MqttMonitor/i18n/mqttmonitor_de.ts",
+      "MqttMonitor/i18n/mqttmonitor_empty.ts",
+      "MqttMonitor/i18n/mqttmonitor_en.qm",
+      "MqttMonitor/i18n/mqttmonitor_en.ts",
+      "MqttMonitor/i18n/mqttmonitor_es.qm",
+      "MqttMonitor/i18n/mqttmonitor_es.ts",
+      "MqttMonitor/i18n/mqttmonitor_ru.qm",
+      "MqttMonitor/i18n/mqttmonitor_ru.ts"
+    ],
+    "TRANSLATIONSBINPATH": "",
+    "UICPARAMS": {
+      "Package": "",
+      "PackagesRoot": "",
+      "RcSuffix": ""
+    },
+    "VCS": "Mercurial",
+    "VCSOPTIONS": {
+      "add": [
+        ""
+      ],
+      "checkout": [
+        ""
+      ],
+      "commit": [
+        ""
+      ],
+      "diff": [
+        ""
+      ],
+      "export": [
+        ""
+      ],
+      "global": [
+        ""
+      ],
+      "history": [
+        ""
+      ],
+      "log": [
+        ""
+      ],
+      "remove": [
+        ""
+      ],
+      "status": [
+        ""
+      ],
+      "tag": [
+        ""
+      ],
+      "update": [
+        ""
+      ]
+    },
+    "VCSOTHERDATA": {},
+    "VERSION": "1.x"
+  }
+}
\ No newline at end of file
--- a/PluginMqttMonitor.py	Wed Dec 30 11:02:05 2020 +0100
+++ b/PluginMqttMonitor.py	Sun Apr 25 17:41:32 2021 +0200
@@ -24,7 +24,7 @@
 author = "Detlev Offenbach <detlev@die-offenbachs.de>"
 autoactivate = True
 deactivateable = True
-version = "2.1.0"
+version = "3.0.0"
 className = "MqttMonitorPlugin"
 packageName = "MqttMonitor"
 shortDescription = "Plug-in implementing a tool to connect to a MQTT broker"
@@ -201,11 +201,7 @@
         """
         Private slot to handle the activation of the MQTT Monitor.
         """
-        try:
-            uiLayoutType = self.__ui.getLayoutType()
-        except AttributeError:
-            # backward compatibility for eric < 18.08
-            uiLayoutType = self.__ui.layoutType
+        uiLayoutType = self.__ui.getLayoutType()
         
         if uiLayoutType == "Toolboxes":
             self.__ui.rToolboxDock.show()

eric ide

mercurial