18 |
18 |
19 def getImporterInfo(id): |
19 def getImporterInfo(id): |
20 """ |
20 """ |
21 Module function to get information for the given XBEL source id. |
21 Module function to get information for the given XBEL source id. |
22 |
22 |
|
23 @param id id of the browser ("chrome" or "chromium") |
23 @return tuple with an icon (QPixmap), readable name (string), name of |
24 @return tuple with an icon (QPixmap), readable name (string), name of |
24 the default bookmarks file (string), an info text (string), |
25 the default bookmarks file (string), an info text (string), |
25 a prompt (string) and the default directory of the bookmarks file (string) |
26 a prompt (string) and the default directory of the bookmarks file (string) |
|
27 @exception ValueError raised to indicate an invalid browser ID |
26 """ |
28 """ |
27 if id == "e5browser": |
29 if id == "e5browser": |
28 from ..BookmarksManager import BookmarksManager |
30 from ..BookmarksManager import BookmarksManager |
29 bookmarksFile = BookmarksManager.getFileName() |
31 bookmarksFile = BookmarksManager.getFileName() |
30 return ( |
32 return ( |