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

branch
eric7
changeset 9489
c03b8323d11a
parent 9473
3f23dbf37dbe
child 9504
1193fc2bf192
equal deleted inserted replaced
9488:44d723e53988 9489:c03b8323d11a
55 55
56 def __init__(self, sourceId="", parent=None): 56 def __init__(self, sourceId="", parent=None):
57 """ 57 """
58 Constructor 58 Constructor
59 59
60 @param sourceId source ID (string) 60 @param sourceId source ID (defaults to "")
61 @param parent reference to the parent object (QObject) 61 @type str (optional)
62 @param parent reference to the parent object (defaults to None)
63 @type QObject (optional)
62 """ 64 """
63 super().__init__(sourceId, parent) 65 super().__init__(sourceId, parent)
64 66
65 self.__fileName = "" 67 self.__fileName = ""
66 self.__inFile = None 68 self.__inFile = None
105 else: 107 else:
106 importRootNode.title = self.tr("Imported {0}").format( 108 importRootNode.title = self.tr("Imported {0}").format(
107 QDate.currentDate().toString(Qt.DateFormat.SystemLocaleShortDate) 109 QDate.currentDate().toString(Qt.DateFormat.SystemLocaleShortDate)
108 ) 110 )
109 return importRootNode 111 return importRootNode
112
113
114 def createImporter(sourceId="", parent=None):
115 """
116 Constructor
117
118 @param sourceId source ID (defaults to "")
119 @type str (optional)
120 @param parent reference to the parent object (defaults to None)
121 @type QObject (optional)
122 @return reference to the instantiated importer object
123 @rtype HtmlImporter
124 """
125 return HtmlImporter(sourceId=sourceId, parent=parent)

eric ide

mercurial