20 |
20 |
21 def getImporterInfo(id): |
21 def getImporterInfo(id): |
22 """ |
22 """ |
23 Module function to get information for the given source id. |
23 Module function to get information for the given source id. |
24 |
24 |
|
25 @param id id of the browser ("chrome" or "chromium") |
25 @return tuple with an icon (QPixmap), readable name (string), name of |
26 @return tuple with an icon (QPixmap), readable name (string), name of |
26 the default bookmarks file (string), an info text (string), |
27 the default bookmarks file (string), an info text (string), |
27 a prompt (string) and the default directory of the bookmarks file (string) |
28 a prompt (string) and the default directory of the bookmarks file (string) |
|
29 @exception ValueError raised to indicate an invalid browser ID |
28 """ |
30 """ |
29 if id == "chrome": |
31 if id == "chrome": |
30 if Globals.isWindowsPlatform(): |
32 if Globals.isWindowsPlatform(): |
31 standardDir = os.path.expandvars( |
33 standardDir = os.path.expandvars( |
32 "%USERPROFILE%\\AppData\\Local\\Google\\Chrome\\User Data\\Default") |
34 "%USERPROFILE%\\AppData\\Local\\Google\\Chrome\\User Data\\Default") |