Helpviewer/Network/QtHelpAccessHandler.py

branch
Py2 comp.
changeset 3057
10516539f238
parent 2525
8b507a9a2d40
parent 3002
6ffc581f00f1
child 3058
0a02c433f52d
--- a/Helpviewer/Network/QtHelpAccessHandler.py	Tue Oct 15 22:03:54 2013 +0200
+++ b/Helpviewer/Network/QtHelpAccessHandler.py	Fri Oct 18 23:00:41 2013 +0200
@@ -73,6 +73,7 @@
         Private method to guess the mime type given an URL.
         
         @param url URL to guess the mime type from (QUrl)
+        @return mime type for the given URL (string)
         """
         path = url.path()
         ext = os.path.splitext(path)[1].lower()
@@ -85,7 +86,8 @@
         """
         Protected method to create a request.
         
-        @param op the operation to be performed (QNetworkAccessManager.Operation)
+        @param op the operation to be performed
+            (QNetworkAccessManager.Operation)
         @param request reference to the request object (QNetworkRequest)
         @param outgoingData reference to an IODevice containing data to be sent
             (QIODevice)
@@ -95,10 +97,10 @@
         strUrl = url.toString()
         
         # For some reason the url to load is already wrong (passed from webkit)
-        # though the css file and the references inside should work that way. One
-        # possible problem might be that the css is loaded at the same level as the
-        # html, thus a path inside the css like (../images/foo.png) might cd out of
-        # the virtual folder
+        # though the css file and the references inside should work that way.
+        # One possible problem might be that the css is loaded at the same
+        # level as the html, thus a path inside the css like
+        # (../images/foo.png) might cd out of the virtual folder
         if not self.__engine.findFile(url).isValid():
             if strUrl.startswith(QtDocPath):
                 newUrl = request.url()

eric ide

mercurial