Commit d1e824b6 authored by Aurel's avatar Aurel

same optimisation as previous one but for uncatalog


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@17361 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 1a02f02e
......@@ -823,10 +823,11 @@ class ZCatalog(Folder, Persistent, Implicit):
if uid is None:
raise TypeError, "sorry uncatalog_object supports only uid"
archive_list = []
if getattr(self, "portal_archives", None) is not None:
archive_list = self.portal_archives.getArchiveList()
else:
archive_list = []
if len(self.portal_archives):
archive_list = self.portal_archives.getArchiveList()
catalog_id = None
if len(archive_list) and sql_catalog_id is None:
for archive_path in archive_list:
......
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