5498 |
5498 |
5499 @param reply reference to the reply object (QNetworkReply) |
5499 @param reply reference to the reply object (QNetworkReply) |
5500 @param errors list of SSL errors (list of QSslError) |
5500 @param errors list of SSL errors (list of QSslError) |
5501 """ |
5501 """ |
5502 errorStrings = [] |
5502 errorStrings = [] |
5503 for err in errors: |
5503 if errors: |
5504 errorStrings.append(err.errorString()) |
5504 for err in errors: |
5505 errorString = '.<br />'.join(errorStrings) |
5505 errorStrings.append(err.errorString()) |
5506 ret = E5MessageBox.yesNo(self, |
5506 errorString = '.<br />'.join(errorStrings) |
5507 self.trUtf8("SSL Errors"), |
5507 ret = E5MessageBox.yesNo(self, |
5508 self.trUtf8("""<p>SSL Errors:</p>""" |
5508 self.trUtf8("SSL Errors"), |
5509 """<p>{0}</p>""" |
5509 self.trUtf8("""<p>SSL Errors:</p>""" |
5510 """<p>Do you want to ignore these errors?</p>""")\ |
5510 """<p>{0}</p>""" |
5511 .format(errorString), |
5511 """<p>Do you want to ignore these errors?</p>""")\ |
5512 icon=E5MessageBox.Warning) |
5512 .format(errorString), |
|
5513 icon=E5MessageBox.Warning) |
|
5514 else: |
|
5515 ret = True |
5513 if ret: |
5516 if ret: |
5514 reply.ignoreSslErrors() |
5517 reply.ignoreSslErrors() |
5515 else: |
5518 else: |
5516 self.__downloadCancelled = True |
5519 self.__downloadCancelled = True |
5517 reply.abort() |
5520 reply.abort() |