Commit b31b99e8 authored by Sebastien Robin's avatar Sebastien Robin

added method beforeUnindex

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@11360 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 769f9fb2
......@@ -536,6 +536,15 @@ class CatalogTool (UniqueObject, ZCatalog, CMFCoreCatalogTool, ActiveObject):
path = self.__url(object)
self.uncatalog_object(path=path,uid=uid, sql_catalog_id=sql_catalog_id)
security.declarePrivate('beforeUnindexObject')
def beforeUnindexObject(self, object, path=None, uid=None,sql_catalog_id=None):
"""
Remove from catalog.
"""
if path is None and uid is None:
path = self.__url(object)
self.beforeUncatalogObject(path=path,uid=uid, sql_catalog_id=sql_catalog_id)
security.declarePrivate('getUrl')
def getUrl(self, object):
return self.__url(object)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment