Example #1
0
    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)
Example #2
0
 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)
Example #4
0
 def manage_afterAdd(self, item, container):
     __traceback_info__ = (self, item, container)
     Referenceable.manage_afterAdd(self, item, container)
     self.initializeLayers(item, container)
Example #5
0
 def manage_afterAdd(self, item, container):
     Referenceable.manage_afterAdd(self, item, container)
     
     uc = getToolByName(self, UID_MANAGER)
     uc.catalog_object(self, '/'.join(self.getPhysicalPath()))