Commit 6cf8c934 authored by Nicolas Delaby's avatar Nicolas Delaby

append wrapped object only if wrapObject Succeeds

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@21006 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent d35aa55a
...@@ -786,13 +786,13 @@ class ZCatalog(Folder, Persistent, Implicit): ...@@ -786,13 +786,13 @@ class ZCatalog(Folder, Persistent, Implicit):
# wrap object only when sure it will be reindex now # wrap object only when sure it will be reindex now
# thus security uid is also reindex # thus security uid is also reindex
wrap_obj = self.wrapObject(obj, sql_catalog_id=sql_catalog_id) wrap_obj = self.wrapObject(obj, sql_catalog_id=sql_catalog_id)
wrapped_object_list.append(wrap_obj)
except ConflictError: except ConflictError:
raise raise
except: except:
LOG('WARNING ZSQLCatalog', 0, 'wrapObject failed on the object %r' % (obj,), error=sys.exc_info()) LOG('WARNING ZSQLCatalog', 0, 'wrapObject failed on the object %r' % (obj,), error=sys.exc_info())
failed_object_list.append(obj) failed_object_list.append(obj)
wrapped_object_list.append(wrap_obj)
# run activity or execute for each archive depending on priority # run activity or execute for each archive depending on priority
if len(catalog_dict): if len(catalog_dict):
for catalog_id in catalog_dict.keys(): for catalog_id in catalog_dict.keys():
......
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