src/eric7/WebBrowser/Bookmarks/BookmarksImporters/OperaImporter.py

branch
eric7
changeset 9489
c03b8323d11a
parent 9482
a2bc06a54d9d
child 9504
1193fc2bf192
equal deleted inserted replaced
9488:44d723e53988 9489:c03b8323d11a
60 60
61 def __init__(self, sourceId="", parent=None): 61 def __init__(self, sourceId="", parent=None):
62 """ 62 """
63 Constructor 63 Constructor
64 64
65 @param sourceId source ID (string) 65 @param sourceId source ID (defaults to "")
66 @param parent reference to the parent object (QObject) 66 @type str (optional)
67 @param parent reference to the parent object (defaults to None)
68 @type QObject (optional)
67 """ 69 """
68 super().__init__(sourceId, parent) 70 super().__init__(sourceId, parent)
69 71
70 self.__fileName = "" 72 self.__fileName = ""
71 73
133 else: 135 else:
134 importRootNode.title = self.tr("Imported {0}").format( 136 importRootNode.title = self.tr("Imported {0}").format(
135 QDate.currentDate().toString(Qt.DateFormat.SystemLocaleShortDate) 137 QDate.currentDate().toString(Qt.DateFormat.SystemLocaleShortDate)
136 ) 138 )
137 return importRootNode 139 return importRootNode
140
141
142 def createImporter(sourceId="", parent=None):
143 """
144 Constructor
145
146 @param sourceId source ID (defaults to "")
147 @type str (optional)
148 @param parent reference to the parent object (defaults to None)
149 @type QObject (optional)
150 @return reference to the instantiated importer object
151 @rtype OperaImporter
152 """
153 return OperaImporter(sourceId=sourceId, parent=parent)

eric ide

mercurial