119 def on_serversViewButton_clicked(self): |
119 def on_serversViewButton_clicked(self): |
120 """ |
120 """ |
121 Private slot to show data of the selected server certificate. |
121 Private slot to show data of the selected server certificate. |
122 """ |
122 """ |
123 with contextlib.suppress(ImportError): |
123 with contextlib.suppress(ImportError): |
124 from eric7.EricNetwork.EricSslCertificatesInfoDialog import ( |
124 from eric7.EricNetwork.EricSslCertificatesInfoDialog import ( # __IGNORE_WARNING__ |
125 EricSslCertificatesInfoDialog, |
125 EricSslCertificatesInfoDialog, |
126 ) |
126 ) |
127 |
127 |
128 cert = QSslCertificate.fromData( |
128 cert = QSslCertificate.fromData( |
129 self.serversCertificatesTree.currentItem().data(0, self.CertRole) |
129 self.serversCertificatesTree.currentItem().data(0, self.CertRole) |
338 def on_caViewButton_clicked(self): |
338 def on_caViewButton_clicked(self): |
339 """ |
339 """ |
340 Private slot to show data of the selected CA certificate. |
340 Private slot to show data of the selected CA certificate. |
341 """ |
341 """ |
342 with contextlib.suppress(ImportError): |
342 with contextlib.suppress(ImportError): |
343 from eric7.EricNetwork.EricSslCertificatesInfoDialog import ( |
343 from eric7.EricNetwork.EricSslCertificatesInfoDialog import ( # __IGNORE_WARNING__ |
344 EricSslCertificatesInfoDialog, |
344 EricSslCertificatesInfoDialog, |
345 ) |
345 ) |
346 |
346 |
347 cert = QSslCertificate.fromData( |
347 cert = QSslCertificate.fromData( |
348 self.caCertificatesTree.currentItem().data(0, self.CertRole) |
348 self.caCertificatesTree.currentItem().data(0, self.CertRole) |