def manage_afterAdd(self, item, container): Referenceable.manage_afterAdd(self, item, container) # when copying a full site containe is the container of the plone site # and item is the plone site (at least for objects in portal root) base = container rc = getToolByName(container, REFERENCE_CATALOG) url = getRelURL(base, self.getPhysicalPath()) rc.catalog_object(self, url)
def manage_afterAdd(self, item, container): """ Add self to the catalog. (Called when the object is created or moved.) """ Referenceable.manage_afterAdd(item, item, container) if aq_base(container) is not aq_base(self): self.indexObject() self.__recurse('manage_afterAdd', item, container)
def manage_afterAdd(self, item, container): __traceback_info__ = (self, item, container) Referenceable.manage_afterAdd(self, item, container) self.initializeLayers(item, container)
def manage_afterAdd(self, item, container): __traceback_info__ = (self, item, container) Referenceable.manage_afterAdd(self, item, container) self.initializeLayers(item, container)
def manage_afterAdd(self, item, container): Referenceable.manage_afterAdd(self, item, container) uc = getToolByName(self, UID_MANAGER) uc.catalog_object(self, '/'.join(self.getPhysicalPath()))