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


Python SimpleItem.inheritedAttribute方法代码示例

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


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

示例1: manage_beforeDelete

# 需要导入模块: from OFS.SimpleItem import SimpleItem [as 别名]
# 或者: from OFS.SimpleItem.SimpleItem import inheritedAttribute [as 别名]
 def manage_beforeDelete(self, item, container):
     """ """
     #delete objects dynamic properties
     l_ids = self.getDynamicPropertiesIds()
     for l_object in self.getCatalogedObjects(self.id):
         map(l_object.deleteProperty, l_ids)
     SimpleItem.inheritedAttribute('manage_beforeDelete')(self, item, container)
开发者ID:eaudeweb,项目名称:naaya,代码行数:9,代码来源:DynamicPropertiesItem.py

示例2: manage_afterAdd

# 需要导入模块: from OFS.SimpleItem import SimpleItem [as 别名]
# 或者: from OFS.SimpleItem.SimpleItem import inheritedAttribute [as 别名]
 def manage_afterAdd(self, item, container):
     """ manage the add """
     SimpleItem.inheritedAttribute('manage_afterAdd')(self, item, container)
     item.load_roles_list()
     item.load_languages_list()
     item.load_stop_words_list()
     item.load_subjects_list()
开发者ID:eea,项目名称:EEAGlossary,代码行数:9,代码来源:EEAGlossaryEngine.py

示例3: manage_beforeDelete

# 需要导入模块: from OFS.SimpleItem import SimpleItem [as 别名]
# 或者: from OFS.SimpleItem.SimpleItem import inheritedAttribute [as 别名]
 def manage_beforeDelete(self, item, container):
     """
     This method is called, when the object is deleted.
     """
     SimpleItem.inheritedAttribute('manage_beforeDelete')(self, item, container)
     try: self.getPortletsTool()._delObject(ID_REFLIST)
     except: pass
开发者ID:eaudeweb,项目名称:naaya,代码行数:9,代码来源:NyEurope.py

示例4: manage_beforeDelete

# 需要导入模块: from OFS.SimpleItem import SimpleItem [as 别名]
# 或者: from OFS.SimpleItem.SimpleItem import inheritedAttribute [as 别名]
 def manage_beforeDelete(self, item, container):
     """ this method is called, when the object is deleted """
     if self.meta_type == EEA_GLOSSARY_ELEMENT_METATYPE:
         self.utSynonymElDel()
     else:
         self.utElementSynDel()
     SimpleItem.inheritedAttribute('manage_beforeDelete')(self, item, container)
     self.cu_uncatalog_object(self)
开发者ID:eea,项目名称:EEAGlossary,代码行数:10,代码来源:EEAGlossaryElement.py

示例5: __init__

# 需要导入模块: from OFS.SimpleItem import SimpleItem [as 别名]
# 或者: from OFS.SimpleItem.SimpleItem import inheritedAttribute [as 别名]
 def __init__(self, id, max_age, number_to_keep, pub_path):
     SimpleItem.inheritedAttribute('__init__')(self, id, '[VersionCleanUp Helper object]')
     self.id = id
     self._description = self.__doc__
     self._max_age = self._number_to_keep = self._removed = 0
     self._pub_path = pub_path
     self.set_max_age(max_age)
     self.set_number_to_keep(number_to_keep)
     self.set_pub_path(pub_path)
开发者ID:webbyfox,项目名称:SilvaVersionCleanUp,代码行数:11,代码来源:VersionCleanUp.py

示例6: manage_afterAdd

# 需要导入模块: from OFS.SimpleItem import SimpleItem [as 别名]
# 或者: from OFS.SimpleItem.SimpleItem import inheritedAttribute [as 别名]
 def manage_afterAdd(self, item, container):
     """ """
     #create objects dynamic properties
     l_dp_dict = {}
     lang = self.gl_get_selected_language()
     for dp in self.getDynamicProperties():
         l_dp_dict[dp.id] = dp.defaultvalue
     for l_object in self.getCatalogedObjects(self.id):
         l_object.createDynamicProperties(l_dp_dict, lang)
     SimpleItem.inheritedAttribute('manage_afterAdd')(self, item, container)
开发者ID:eaudeweb,项目名称:naaya,代码行数:12,代码来源:DynamicPropertiesItem.py

示例7: manage_afterAdd

# 需要导入模块: from OFS.SimpleItem import SimpleItem [as 别名]
# 或者: from OFS.SimpleItem.SimpleItem import inheritedAttribute [as 别名]
 def manage_afterAdd(self, item, container):
     """ this method is called, whenever _setObject in ObjectManager gets called """
     SimpleItem.inheritedAttribute('manage_afterAdd')(self, item, container)
     self.cu_catalog_object(self)
开发者ID:eea,项目名称:EEAGlossary,代码行数:6,代码来源:EEAGlossaryElement.py

示例8: manage_beforeDelete

# 需要导入模块: from OFS.SimpleItem import SimpleItem [as 别名]
# 或者: from OFS.SimpleItem.SimpleItem import inheritedAttribute [as 别名]
 def manage_beforeDelete(self, item, container):
     """ This method is called, when the object is deleted. """
     SimpleItem.inheritedAttribute('manage_beforeDelete')(self, item, container)
     self.delete_portlet_for_object(item)
开发者ID:eaudeweb,项目名称:naaya,代码行数:6,代码来源:LinksList.py

示例9: manage_beforeDelete

# 需要导入模块: from OFS.SimpleItem import SimpleItem [as 别名]
# 或者: from OFS.SimpleItem.SimpleItem import inheritedAttribute [as 别名]
 def manage_beforeDelete(self, item, container):
     """ this method is called, when the object is deleted. """
     SimpleItem.inheritedAttribute('manage_beforeDelete')(self, item, container)
     root_obj = self.utGetROOT()
     root_obj._delRoles(self.__roles.keys(), None)
开发者ID:eea,项目名称:EEAGlossary,代码行数:7,代码来源:EEAGlossaryEngine.py

示例10: manage_beforeDelete

# 需要导入模块: from OFS.SimpleItem import SimpleItem [as 别名]
# 或者: from OFS.SimpleItem.SimpleItem import inheritedAttribute [as 别名]
 def manage_beforeDelete(self, item, container):
     """
     This method is called, when the object is deleted.
     """
     SimpleItem.inheritedAttribute('manage_beforeDelete')(self, item, container)
     self.uncatalogNyObject(self)
开发者ID:eaudeweb,项目名称:naaya,代码行数:8,代码来源:NyItem.py

示例11: manage_beforeDelete

# 需要导入模块: from OFS.SimpleItem import SimpleItem [as 别名]
# 或者: from OFS.SimpleItem.SimpleItem import inheritedAttribute [as 别名]
 def manage_beforeDelete(self, item, container):
     """ this method is called, when the object is deleted """
     self.UncatalogDMObject(self)
     try: Folder.inheritedAttribute('manage_beforeDelete')(self, item, container)
     except: SimpleItem.inheritedAttribute('manage_beforeDelete')(self, item, container)
开发者ID:eaudeweb,项目名称:naaya,代码行数:7,代码来源:DocBase.py

示例12: manage_afterAdd

# 需要导入模块: from OFS.SimpleItem import SimpleItem [as 别名]
# 或者: from OFS.SimpleItem.SimpleItem import inheritedAttribute [as 别名]
 def manage_afterAdd(self, item, container):
     """ this method is called, whenever _setObject in DocManager gets called """
     try: Folder.inheritedAttribute('manage_afterAdd')(self, item, container)
     except: SimpleItem.inheritedAttribute('manage_afterAdd')(self, item, container)
     self.CatalogDMObject(self)
开发者ID:eaudeweb,项目名称:naaya,代码行数:7,代码来源:DocBase.py


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