Home ⌂Doc Index ◂Up ▴

eric6.WebBrowser.Bookmarks.BookmarksImporters.SafariImporter

Module implementing an importer for Apple Safari bookmarks.

Global Attributes

None

Classes

SafariImporter Class implementing the Apple Safari bookmarks importer.

Functions

getImporterInfo Module function to get information for the given source id.


SafariImporter

Class implementing the Apple Safari bookmarks importer.

Derived from

BookmarksImporter

Class Attributes

None

Class Methods

None

Methods

SafariImporter Constructor
__processChildren Private method to process the list of children.
importedBookmarks Public method to get the imported bookmarks.
open Public method to open the bookmarks file.
setPath Public method to set the path of the bookmarks file or directory.

Static Methods

None

SafariImporter (Constructor)

SafariImporter(sourceId="", parent=None)

Constructor

sourceId
source ID (string)
parent
reference to the parent object (QObject)

SafariImporter.__processChildren

__processChildren(children, rootNode)

Private method to process the list of children.

children
list of child nodes to be processed (list of dict)
rootNode
node to add the bookmarks to (BookmarkNode)

SafariImporter.importedBookmarks

importedBookmarks()

Public method to get the imported bookmarks.

Returns:
imported bookmarks (BookmarkNode)

SafariImporter.open

open()

Public method to open the bookmarks file.

Returns:
flag indicating success (boolean)

SafariImporter.setPath

setPath(path)

Public method to set the path of the bookmarks file or directory.

path
bookmarks file or directory (string)
Up


getImporterInfo

getImporterInfo(sourceId)

Module function to get information for the given source id.

sourceId
id of the browser ("chrome" or "chromium")
Returns:
tuple with an icon (QPixmap), readable name (string), name of the default bookmarks file (string), an info text (string), a prompt (string) and the default directory of the bookmarks file (string)
Raises ValueError:
raised to indicate an invalid browser ID
Up



Home ⌂Doc Index ◂Up ▴