Commit 6754f934 authored by Ayush Tiwari's avatar Ayush Tiwari

multiple_catalog: Better to use one failed_list for all the catalogs

parent 9b9519d5
...@@ -717,6 +717,7 @@ class ZCatalog(Folder, Persistent, Implicit): ...@@ -717,6 +717,7 @@ class ZCatalog(Folder, Persistent, Implicit):
"""Catalog a list of objects. """Catalog a list of objects.
""" """
catalog_id_list = self.getERP5CatalogIdList() catalog_id_list = self.getERP5CatalogIdList()
failed_object_list = []
for sql_catalog_id in catalog_id_list: for sql_catalog_id in catalog_id_list:
catalog = self.getSQLCatalog(sql_catalog_id) catalog = self.getSQLCatalog(sql_catalog_id)
if not catalog.getValidationState() == 'validated': if not catalog.getValidationState() == 'validated':
...@@ -726,7 +727,6 @@ class ZCatalog(Folder, Persistent, Implicit): ...@@ -726,7 +727,6 @@ class ZCatalog(Folder, Persistent, Implicit):
(self.source_sql_catalog_id == catalog.id) (self.source_sql_catalog_id == catalog.id)
archiving = self.archive_path is not None archiving = self.archive_path is not None
wrapped_object_list = [] wrapped_object_list = []
failed_object_list = []
url_list = [] url_list = []
archive_list = [] archive_list = []
portal_archives = getattr(self, 'portal_archives', None) portal_archives = getattr(self, 'portal_archives', 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