Commit aa0d8af5 authored by Sebastien Robin's avatar Sebastien Robin

support uid parameter in uncatalog_object

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@11329 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 667d08c9
......@@ -645,11 +645,11 @@ class ZCatalog(Folder, Persistent, Implicit):
object_list[:] = failed_object_list[:]
def uncatalog_object(self, uid, sql_catalog_id=None):
def uncatalog_object(self, uid=None,path=None, sql_catalog_id=None):
""" wrapper around catalog """
catalog = self.getSQLCatalog(sql_catalog_id)
if catalog is not None:
catalog.uncatalogObject(uid)
catalog.uncatalogObject(uid=uid,path=path)
if self.hot_reindexing_state is not None and self.source_sql_catalog_id == catalog.id:
destination_catalog = self.getSQLCatalog(self.destination_sql_catalog_id)
......
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