Helpviewer/Bookmarks/BookmarksImporters/IExplorerImporter.py

branch
Py2 comp.
changeset 3057
10516539f238
parent 2525
8b507a9a2d40
parent 3002
6ffc581f00f1
child 3145
a9de05d4a22f
--- a/Helpviewer/Bookmarks/BookmarksImporters/IExplorerImporter.py	Tue Oct 15 22:03:54 2013 +0200
+++ b/Helpviewer/Bookmarks/BookmarksImporters/IExplorerImporter.py	Fri Oct 18 23:00:41 2013 +0200
@@ -23,9 +23,12 @@
     """
     Module function to get information for the given source id.
     
+    @param id id of the browser ("chrome" or "chromium")
     @return tuple with an icon (QPixmap), readable name (string), name of
         the default bookmarks file (string), an info text (string),
-        a prompt (string) and the default directory of the bookmarks file (string)
+        a prompt (string) and the default directory of the bookmarks file
+        (string)
+    @exception ValueError raised to indicate an invalid browser ID
     """
     if id == "ie":
         if Globals.isWindowsPlatform():
@@ -37,10 +40,13 @@
             UI.PixmapCache.getPixmap("internet_explorer.png"),
             "Internet Explorer",
             "",
-            QCoreApplication.translate("IExplorerImporter",
-                """Internet Explorer stores its bookmarks in the <b>Favorites</b> """
-                """folder This folder is usually located in"""),
-            QCoreApplication.translate("IExplorerImporter",
+            QCoreApplication.translate(
+                "IExplorerImporter",
+                """Internet Explorer stores its bookmarks in the"""
+                """ <b>Favorites</b> folder This folder is usually"""
+                """ located in"""),
+            QCoreApplication.translate(
+                "IExplorerImporter",
                 """Please choose the folder to begin importing bookmarks."""),
             standardDir,
         )
@@ -128,9 +134,11 @@
                             break
                     if url:
                         if dir in folders:
-                            bookmark = BookmarkNode(BookmarkNode.Bookmark, folders[dir])
+                            bookmark = BookmarkNode(BookmarkNode.Bookmark,
+                                                    folders[dir])
                         else:
-                            bookmark = BookmarkNode(BookmarkNode.Bookmark, importRootNode)
+                            bookmark = BookmarkNode(BookmarkNode.Bookmark,
+                                                    importRootNode)
                         bookmark.url = url
                         bookmark.title = name.replace("&", "&&")
         

eric ide

mercurial