本文整理汇总了Python中plugins.imp.ImportPlugin.clear方法的典型用法代码示例。如果您正苦于以下问题:Python ImportPlugin.clear方法的具体用法?Python ImportPlugin.clear怎么用?Python ImportPlugin.clear使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类plugins.imp.ImportPlugin
的用法示例。
在下文中一共展示了ImportPlugin.clear方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: clear
# 需要导入模块: from plugins.imp import ImportPlugin [as 别名]
# 或者: from plugins.imp.ImportPlugin import clear [as 别名]
def clear(self):
"""clear plugin before next source file"""
IP.clear(self)
if self.openfile:
self.openfile.close()
self.openfile = None
self.fileversion = 0
示例2: clear
# 需要导入模块: from plugins.imp import ImportPlugin [as 别名]
# 或者: from plugins.imp.ImportPlugin import clear [as 别名]
def clear(self):
IP.clear(self)
self.nb_pages.get_nth_page(1).hide()
self.csv_header = None
self.ls_assigned.clear()
self.ls_griffith.clear()
# add default griffith fields again
self.set_griffith_fields()
示例3: clear
# 需要导入模块: from plugins.imp import ImportPlugin [as 别名]
# 或者: from plugins.imp.ImportPlugin import clear [as 别名]
def clear(self):
"""clear plugin before next source file"""
IP.clear(self)
if self.filedom:
self.filedom.unlink()
self.filedom = None
self.fileversion = None
self.items = None
self.itemindex = 0
示例4: clear
# 需要导入模块: from plugins.imp import ImportPlugin [as 别名]
# 或者: from plugins.imp.ImportPlugin import clear [as 别名]
def clear(self):
"""clear plugin before next source file"""
IP.clear(self)
if self.cursor:
self.cursor.close()
self.cursor = None
if self.connection:
self.connection.close()
self.connection = None
self.fileversion = None
示例5: clear
# 需要导入模块: from plugins.imp import ImportPlugin [as 别名]
# 或者: from plugins.imp.ImportPlugin import clear [as 别名]
def clear(self):
"""clear plugin state before next source file"""
IP.clear(self)
if self.xml:
self.xml = None
self.fileversion = None
self.items = None
self.itemindex = 0
if self.poster_file:
os.unlink(self.poster_file)
self.poster_file = None
示例6: clear
# 需要导入模块: from plugins.imp import ImportPlugin [as 别名]
# 或者: from plugins.imp.ImportPlugin import clear [as 别名]
def clear(self):
"""clear plugin before next source file"""
IP.clear(self)
self.cursor = None
self.connection = None
self.fileversion = None