PluginManager/PluginRepositoryDialog.py

changeset 541
00e1a5d060c5
parent 539
87f9bce38a44
child 553
5af61623ae3c
equal deleted inserted replaced
540:2631831b4052 541:00e1a5d060c5
497 """ 497 """
498 errorStrings = [] 498 errorStrings = []
499 for err in errors: 499 for err in errors:
500 errorStrings.append(err.errorString()) 500 errorStrings.append(err.errorString())
501 errorString = '.<br />'.join(errorStrings) 501 errorString = '.<br />'.join(errorStrings)
502 ret = E5MessageBox.warning(self, 502 ret = E5MessageBox.yesNo(self,
503 self.trUtf8("SSL Errors"), 503 self.trUtf8("SSL Errors"),
504 self.trUtf8("""<p>SSL Errors:</p>""" 504 self.trUtf8("""<p>SSL Errors:</p>"""
505 """<p>{0}</p>""" 505 """<p>{0}</p>"""
506 """<p>Do you want to ignore these errors?</p>""")\ 506 """<p>Do you want to ignore these errors?</p>""")\
507 .format(errorString), 507 .format(errorString),
508 QMessageBox.StandardButtons(\ 508 type_ = E5MessageBox.Warning)
509 QMessageBox.No | \ 509 if ret:
510 QMessageBox.Yes),
511 QMessageBox.No)
512 if ret == QMessageBox.Yes:
513 reply.ignoreSslErrors() 510 reply.ignoreSslErrors()
514 else: 511 else:
515 self.__downloadCancelled = True 512 self.__downloadCancelled = True
516 reply.abort() 513 reply.abort()
517 514

eric ide

mercurial