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