eric6/WebBrowser/Network/SslErrorExceptionsDialog.py

changeset 8143
2c730d5fd177
parent 7923
91e843545d9a
child 8218
7c09585bd960
--- a/eric6/WebBrowser/Network/SslErrorExceptionsDialog.py	Mon Mar 01 17:48:43 2021 +0100
+++ b/eric6/WebBrowser/Network/SslErrorExceptionsDialog.py	Tue Mar 02 17:17:09 2021 +0100
@@ -31,45 +31,47 @@
         self.setupUi(self)
         
         self.__errorDescriptions = {
-            QWebEngineCertificateError.SslPinnedKeyNotInCertificateChain:
+            QWebEngineCertificateError.Error.SslPinnedKeyNotInCertificateChain:
                 self.tr("The certificate did not match the built-in public"
                         " keys pinned for the host name."),
-            QWebEngineCertificateError.CertificateCommonNameInvalid:
+            QWebEngineCertificateError.Error.CertificateCommonNameInvalid:
                 self.tr("The certificate's common name did not match the"
                         " host name."),
-            QWebEngineCertificateError.CertificateDateInvalid:
+            QWebEngineCertificateError.Error.CertificateDateInvalid:
                 self.tr("The certificate is not valid at the current date"
                         " and time."),
-            QWebEngineCertificateError.CertificateAuthorityInvalid:
+            QWebEngineCertificateError.Error.CertificateAuthorityInvalid:
                 self.tr("The certificate is not signed by a trusted"
                         " authority."),
-            QWebEngineCertificateError.CertificateContainsErrors:
+            QWebEngineCertificateError.Error.CertificateContainsErrors:
                 self.tr("The certificate contains errors."),
-            QWebEngineCertificateError.CertificateNoRevocationMechanism:
+            QWebEngineCertificateError.Error.CertificateNoRevocationMechanism:
                 self.tr("The certificate has no mechanism for determining if"
                         " it has been revoked."),
-            QWebEngineCertificateError.CertificateUnableToCheckRevocation:
+            QWebEngineCertificateError.Error
+            .CertificateUnableToCheckRevocation:
                 self.tr("Revocation information for the certificate is"
                         " not available."),
-            QWebEngineCertificateError.CertificateRevoked:
+            QWebEngineCertificateError.Error.CertificateRevoked:
                 self.tr("The certificate has been revoked."),
-            QWebEngineCertificateError.CertificateInvalid:
+            QWebEngineCertificateError.Error.CertificateInvalid:
                 self.tr("The certificate is invalid."),
-            QWebEngineCertificateError.CertificateWeakSignatureAlgorithm:
+            QWebEngineCertificateError.Error.CertificateWeakSignatureAlgorithm:
                 self.tr("The certificate is signed using a weak signature"
                         " algorithm."),
-            QWebEngineCertificateError.CertificateNonUniqueName:
+            QWebEngineCertificateError.Error.CertificateNonUniqueName:
                 self.tr("The host name specified in the certificate is"
                         " not unique."),
-            QWebEngineCertificateError.CertificateWeakKey:
+            QWebEngineCertificateError.Error.CertificateWeakKey:
                 self.tr("The certificate contains a weak key."),
-            QWebEngineCertificateError.CertificateNameConstraintViolation:
+            QWebEngineCertificateError.Error
+            .CertificateNameConstraintViolation:
                 self.tr("The certificate claimed DNS names that are in"
                         " violation of name constraints."),
         }
         try:
             self.__errorDescriptions[
-                QWebEngineCertificateError.CertificateValidityTooLong
+                QWebEngineCertificateError.Error.CertificateValidityTooLong
             ] = self.tr(
                 "The certificate has a validity period that is too long."
             )
@@ -78,7 +80,8 @@
             pass
         try:
             self.__errorDescriptions[
-                QWebEngineCertificateError.CertificateTransparencyRequired
+                QWebEngineCertificateError.Error
+                .CertificateTransparencyRequired
             ] = self.tr(
                 "Certificate Transparency was required for this"
                 " connection, but the server did not provide"
@@ -101,7 +104,7 @@
         self.errorsTree.expandAll()
         for i in range(self.errorsTree.columnCount()):
             self.errorsTree.resizeColumnToContents(i)
-        self.errorsTree.sortItems(0, Qt.AscendingOrder)
+        self.errorsTree.sortItems(0, Qt.SortOrder.AscendingOrder)
         
         self.__setRemoveButtons()
     

eric ide

mercurial