Helpviewer/Bookmarks/BookmarksImporters/OperaImporter.py

changeset 2954
bf0215fe12d1
parent 2403
e3d7a861547c
child 3002
6ffc581f00f1
equal deleted inserted replaced
2953:703452a2876f 2954:bf0215fe12d1
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():

eric ide

mercurial