Commit e49d81b5 authored by Yoshinori Okuji's avatar Yoshinori Okuji

hot_reindexing must be defined.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@4866 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 28f0486a
......@@ -596,6 +596,8 @@ class ZCatalog(Folder, Persistent, Implicit):
def catalogObjectList(self, object_list, sql_catalog_id=None,**kw):
"""Catalog a list of objects.
"""
hot_reindexing = (self.hot_reindexing_state is not None and self.source_sql_catalog_id == catalog.id)
wrapped_object_list = []
failed_object_list = []
url_list = []
......@@ -624,8 +626,7 @@ class ZCatalog(Folder, Persistent, Implicit):
catalog = self.getSQLCatalog(sql_catalog_id)
if catalog is not None:
catalog.catalogObjectList(wrapped_object_list,**kw)
if self.hot_reindexing_state is not None and self.source_sql_catalog_id == catalog.id:
if hot_reindexing:
destination_catalog = self.getSQLCatalog(self.destination_sql_catalog_id)
if destination_catalog.id != catalog.id:
if self.hot_reindexing_state == 'recording':
......
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