Exemplo n.º 1
0
 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
Exemplo n.º 2
0
 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()
Exemplo n.º 3
0
 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)
Exemplo n.º 4
0
 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)
Exemplo n.º 5
0
 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)
 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)
Exemplo n.º 7
0
 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)
Exemplo n.º 8
0
 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)
Exemplo n.º 9
0
 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)
Exemplo n.º 10
0
 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)
Exemplo n.º 11
0
 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)
Exemplo n.º 12
0
 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)
Exemplo n.º 13
0
 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)
Exemplo n.º 14
0
 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)
Exemplo n.º 15
0
 def manage_afterAdd(self, item, container):
     """
     This method is called, whenever _setObject in ObjectManager gets called.
     """
     SimpleItem.inheritedAttribute('manage_afterAdd')(self, item, container)
     self.catalogNyObject(self)
Exemplo n.º 16
0
 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)
Exemplo n.º 17
0
 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)