WebBrowser/Network/SslErrorExceptionsDialog.py

changeset 5201
21601e86a3f5
parent 4820
f38e4fb83ecd
child 5253
57276f763bf6
equal deleted inserted replaced
5200:0f0efb52fda6 5201:21601e86a3f5
67 self.tr("The certificate contains a weak key."), 67 self.tr("The certificate contains a weak key."),
68 QWebEngineCertificateError.CertificateNameConstraintViolation: 68 QWebEngineCertificateError.CertificateNameConstraintViolation:
69 self.tr("The certificate claimed DNS names that are in" 69 self.tr("The certificate claimed DNS names that are in"
70 " violation of name constraints."), 70 " violation of name constraints."),
71 } 71 }
72 try:
73 self.__errorDescriptions[
74 QWebEngineCertificateError.CertificateValidityTooLong] = \
75 self.tr("The certificate has a validity period that is too long.")
76 except AttributeError:
77 # the value was added in Qt 5.7
78 pass
72 79
73 for host, errors in errorsDict.items(): 80 for host, errors in errorsDict.items():
74 itm = QTreeWidgetItem(self.errorsTree, [host]) 81 itm = QTreeWidgetItem(self.errorsTree, [host])
75 self.errorsTree.setFirstItemColumnSpanned(itm, True) 82 self.errorsTree.setFirstItemColumnSpanned(itm, True)
76 for error in errors: 83 for error in errors:

eric ide

mercurial