PluginManager/PluginRepositoryDialog.py

changeset 539
87f9bce38a44
parent 537
72b32daeb8d6
child 541
00e1a5d060c5
equal deleted inserted replaced
538:7f1a56e80124 539:87f9bce38a44
363 if reply in self.__replies: 363 if reply in self.__replies:
364 self.__replies.remove(reply) 364 self.__replies.remove(reply)
365 if reply.error() != QNetworkReply.NoError: 365 if reply.error() != QNetworkReply.NoError:
366 ok = False 366 ok = False
367 if not self.__downloadCancelled: 367 if not self.__downloadCancelled:
368 QMessageBox.warning(None, 368 E5MessageBox.warning(self,
369 self.trUtf8("Error downloading file"), 369 self.trUtf8("Error downloading file"),
370 self.trUtf8( 370 self.trUtf8(
371 """<p>Could not download the requested file from {0}.</p>""" 371 """<p>Could not download the requested file from {0}.</p>"""
372 """<p>Error: {1}</p>""" 372 """<p>Error: {1}</p>"""
373 ).format(self.__downloadURL, reply.errorString()) 373 ).format(self.__downloadURL, reply.errorString())
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 = QMessageBox.warning(self, 502 ret = E5MessageBox.warning(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),

eric ide

mercurial