Commit 7aaff193 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

fixup! fixup! erp5_full_text_mroonga_catalog: defer fulltext index and unindex using...

we should use a different grouped method id so that non-deferred and deferred activities will not be
grouped at once.
parent 9ab5d18d
# This script is called to defer fulltext indexing.
METHOD_ID = script.id + 'Activity'
GROUP_METHOD_ID = 'portal_catalog/catalogObjectList'
GROUP_METHOD_ID = 'portal_catalog/deferredCatalogObjectList'
activateObject = context.getPortalObject().portal_activities.activateObject
try:
priority = context.getActivityRuntimeEnvironment().getPriority()
......
......@@ -990,6 +990,8 @@ class CatalogTool (UniqueObject, ZCatalog, CMFCoreCatalogTool, ActiveObject):
else:
super(CatalogTool, self).catalogObjectList(object_list, *args, **kw)
deferredCatalogObjectList = catalogObjectList
security.declarePrivate('uncatalogObjectList')
def uncatalogObjectList(self, message_list):
"""Uncatalog a list of objects"""
......
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