Commit 667d08c9 authored by Sebastien Robin's avatar Sebastien Robin

support uid parameter in uncatalogObject

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@11328 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 7ac1baf3
......@@ -1192,7 +1192,7 @@ class Catalog(Folder, Persistent, Acquisition.Implicit, ExtensionClass.Base):
if psyco is not None: psyco.bind(catalogObjectList)
def uncatalogObject(self, path):
def uncatalogObject(self, path=None,uid=None):
"""
Uncatalog and object from the Catalog.
......@@ -1217,6 +1217,7 @@ class Catalog(Folder, Persistent, Acquisition.Implicit, ExtensionClass.Base):
if not (root_indexable and site_indexable):
return None
if uid is None and path is not None:
uid = self.getUidForPath(path)
methods = self.sql_uncatalog_object
if uid is None:
......
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