Commit bdcf2ae8 authored by Vincent Pelletier's avatar Vincent Pelletier

Test only when required.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@16226 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 569a3250
...@@ -715,10 +715,10 @@ class CatalogTool (UniqueObject, ZCatalog, CMFCoreCatalogTool, ActiveObject): ...@@ -715,10 +715,10 @@ class CatalogTool (UniqueObject, ZCatalog, CMFCoreCatalogTool, ActiveObject):
""" """
Remove from catalog. Remove from catalog.
""" """
if path is None and uid is None and object is None:
raise TypeError, 'One of uid, path and object parameters must not be None'
if path is None and uid is None: if path is None and uid is None:
path = self.__url(object) path = self.__url(object)
if object is None:
raise TypeError, 'One of uid, path and object parameters must not be None'
self.uncatalog_object(path=path,uid=uid, sql_catalog_id=sql_catalog_id) self.uncatalog_object(path=path,uid=uid, sql_catalog_id=sql_catalog_id)
security.declarePrivate('beforeUnindexObject') security.declarePrivate('beforeUnindexObject')
......
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