本文整理汇总了Python中Products.CMFCore.PortalFolder.PortalFolder.manage_beforeDelete方法的典型用法代码示例。如果您正苦于以下问题:Python PortalFolder.manage_beforeDelete方法的具体用法?Python PortalFolder.manage_beforeDelete怎么用?Python PortalFolder.manage_beforeDelete使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Products.CMFCore.PortalFolder.PortalFolder
的用法示例。
在下文中一共展示了PortalFolder.manage_beforeDelete方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: manage_beforeDelete
# 需要导入模块: from Products.CMFCore.PortalFolder import PortalFolder [as 别名]
# 或者: from Products.CMFCore.PortalFolder.PortalFolder import manage_beforeDelete [as 别名]
def manage_beforeDelete(self, item, container):
" Remove self from the workflow and catalog. "
# We don't call PortalContent.manage_beforeDelete because
# it deals with talkbacks which are subobjects...
# Remove self from catalog
if aq_base(container) is not aq_base(self):
self.unindexObject()
# Then recurse in the children (ObjectManager)
PortalFolder.manage_beforeDelete(self, item, container)
示例2: manage_beforeDelete
# 需要导入模块: from Products.CMFCore.PortalFolder import PortalFolder [as 别名]
# 或者: from Products.CMFCore.PortalFolder.PortalFolder import manage_beforeDelete [as 别名]
def manage_beforeDelete(self, item, container):
""" Remove self from the workflow and catalog. """
if aq_base(container) is not aq_base(self):
self.unindexObject()
PortalFolder.manage_beforeDelete(self, item, container)