本文整理汇总了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)
示例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()
示例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
示例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)
示例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)
示例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)
示例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)
示例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)
示例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)
示例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)
示例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)
示例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)