PluginManager/PluginRepositoryDialog.py

changeset 2094
88620e11c67c
parent 1763
25a83ac16a5e
child 2101
5bac7dee9e1a
equal deleted inserted replaced
2089:d23ab571d2b9 2094:88620e11c67c
489 489
490 @param reply reference to the reply object (QNetworkReply) 490 @param reply reference to the reply object (QNetworkReply)
491 @param errors list of SSL errors (list of QSslError) 491 @param errors list of SSL errors (list of QSslError)
492 """ 492 """
493 errorStrings = [] 493 errorStrings = []
494 for err in errors: 494 if errors:
495 errorStrings.append(err.errorString()) 495 for err in errors:
496 errorString = '.<br />'.join(errorStrings) 496 errorStrings.append(err.errorString())
497 ret = E5MessageBox.yesNo(self, 497 errorString = '.<br />'.join(errorStrings)
498 self.trUtf8("SSL Errors"), 498 ret = E5MessageBox.yesNo(self,
499 self.trUtf8("""<p>SSL Errors:</p>""" 499 self.trUtf8("SSL Errors"),
500 """<p>{0}</p>""" 500 self.trUtf8("""<p>SSL Errors:</p>"""
501 """<p>Do you want to ignore these errors?</p>""")\ 501 """<p>{0}</p>"""
502 .format(errorString), 502 """<p>Do you want to ignore these errors?</p>""")\
503 .format(errorString),
503 icon=E5MessageBox.Warning) 504 icon=E5MessageBox.Warning)
505 else:
506 ret = True
504 if ret: 507 if ret:
505 reply.ignoreSslErrors() 508 reply.ignoreSslErrors()
506 else: 509 else:
507 self.__downloadCancelled = True 510 self.__downloadCancelled = True
508 reply.abort() 511 reply.abort()

eric ide

mercurial