Helpviewer/Network/QtHelpAccessHandler.py

changeset 3190
a9a94491c4fd
parent 3160
209a07d7e401
child 3484
645c12de6b0c
equal deleted inserted replaced
3189:9a21c547de5f 3190:a9a94491c4fd
113 mimeType = self.__mimeFromUrl(url) 113 mimeType = self.__mimeFromUrl(url)
114 114
115 if self.__engine.findFile(url).isValid(): 115 if self.__engine.findFile(url).isValid():
116 data = self.__engine.fileData(url) 116 data = self.__engine.fileData(url)
117 else: 117 else:
118 data = QByteArray(self.trUtf8( 118 data = QByteArray(self.tr(
119 """<title>Error 404...</title>""" 119 """<title>Error 404...</title>"""
120 """<div align="center"><br><br>""" 120 """<div align="center"><br><br>"""
121 """<h1>The page could not be found</h1><br>""" 121 """<h1>The page could not be found</h1><br>"""
122 """<h3>'{0}'</h3></div>""").format(strUrl).encode("utf-8")) 122 """<h3>'{0}'</h3></div>""").format(strUrl).encode("utf-8"))
123 return NetworkReply(request, data, mimeType, self.parent()) 123 return NetworkReply(request, data, mimeType, self.parent())

eric ide

mercurial