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