本文整理汇总了Python中dNG.data.data_linker.DataLinker.delete方法的典型用法代码示例。如果您正苦于以下问题:Python DataLinker.delete方法的具体用法?Python DataLinker.delete怎么用?Python DataLinker.delete使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类dNG.data.data_linker.DataLinker
的用法示例。
在下文中一共展示了DataLinker.delete方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: delete
# 需要导入模块: from dNG.data.data_linker import DataLinker [as 别名]
# 或者: from dNG.data.data_linker.DataLinker import delete [as 别名]
def delete(self):
"""
Deletes this entry from the database.
:since: v0.2.00
"""
if (self.log_handler is not None): self.log_handler.debug("#echo(__FILEPATH__)# -{0!r}.delete()- (#echo(__LINE__)#)", self, context = "pas_datalinker")
with self:
db_text_entry_instance = self.local.db_instance.rel_text_entry
DataLinker.delete(self)
if (db_text_entry_instance is not None): self.local.connection.delete(db_text_entry_instance)
示例2: delete
# 需要导入模块: from dNG.data.data_linker import DataLinker [as 别名]
# 或者: from dNG.data.data_linker.DataLinker import delete [as 别名]
def delete(self):
"""
Deletes this entry from the database.
:since: v0.1.00
"""
with self, TransactionContext():
if (self.type & Entry.VFS_TYPE_DIRECTORY == Entry.VFS_TYPE_DIRECTORY):
for entry in self.get_content_list(): entry.delete()
#
db_resource_metadata_instance = self.local.db_instance.rel_resource_metadata
DataLinker.delete(self)
if (db_resource_metadata_instance is not None): self.local.connection.delete(db_resource_metadata_instance)