当前位置: 首页>>代码示例>>Python>>正文


Python Folder.manage_delObjects方法代码示例

本文整理汇总了Python中OFS.Folder.Folder.manage_delObjects方法的典型用法代码示例。如果您正苦于以下问题:Python Folder.manage_delObjects方法的具体用法?Python Folder.manage_delObjects怎么用?Python Folder.manage_delObjects使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在OFS.Folder.Folder的用法示例。


在下文中一共展示了Folder.manage_delObjects方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: cancelCheckout

# 需要导入模块: from OFS.Folder import Folder [as 别名]
# 或者: from OFS.Folder.Folder import manage_delObjects [as 别名]
 def cancelCheckout(self):
     baseline = self._getBaseline()
     notify(event.CancelCheckoutEvent(self.context, baseline))
     wc_container = aq_parent(aq_inner(self.context))
     Folder.manage_delObjects(wc_container, [self.context.getId()])
     if getSecurityManager().checkPermission(permissions.View, baseline):
         return baseline
     else:
         return aq_parent(baseline)
开发者ID:syslabcom,项目名称:recensio.policy,代码行数:11,代码来源:iteration.py

示例2: manage_delObjects

# 需要导入模块: from OFS.Folder import Folder [as 别名]
# 或者: from OFS.Folder.Folder import manage_delObjects [as 别名]
 def manage_delObjects(self, ids=[], REQUEST=None):
     """ override default method to handle better the redirection """
     for activity_id in [id for id in ids if id in self.objectIds('Activity')]:
         # fallout all the workitems that have this activity id
         for wi in self.Catalog(meta_type='Workitem',
                                process_path=self.absolute_url(1),
                                activity_id=activity_id,
                                status=['active', 'inactive']):
             wi_obj = self.Catalog.getobject(wi.data_record_id_)
             wi_obj.aq_parent.falloutWorkitem(wi.id)
     Folder.manage_delObjects(self, ids)
     if REQUEST: REQUEST.RESPONSE.redirect(REQUEST.HTTP_REFERER)
开发者ID:eea,项目名称:Products.Reportek,代码行数:14,代码来源:process.py

示例3: manage_delObjects

# 需要导入模块: from OFS.Folder import Folder [as 别名]
# 或者: from OFS.Folder.Folder import manage_delObjects [as 别名]
 def manage_delObjects(self, ids=[], REQUEST=None):
   """ override default method to handle better the redirection """
   Folder.manage_delObjects(self, ids)
   if REQUEST: REQUEST.RESPONSE.redirect(REQUEST.HTTP_REFERER)
开发者ID:dipp,项目名称:Products.CMFOpenflow,代码行数:6,代码来源:process.py


注:本文中的OFS.Folder.Folder.manage_delObjects方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。