Commit 6af4fd52 authored by Vincent Pelletier's avatar Vincent Pelletier

SQLCatalog_deferFullTextIndex: De-hardcode called method.

Both the dummy method_id and the actually-used grouping_method_id.
parent 2c57b5a1
# This script is called to defer fulltext indexing in a lower priority.
GROUP_METHOD_ID = context.getPath() + '/SQLCatalog_deferFullTextIndexActivity'
METHOD_ID = script.id + 'Activity'
GROUP_METHOD_ID = context.getPath() + '/' + METHOD_ID
activateObject = context.getPortalObject().portal_activities.activateObject
for document, root_document_path in zip(getPath, getRootDocumentPath):
activateObject(
document,
activity='SQLQueue',
priority=4,
node='same',
group_method_id=GROUP_METHOD_ID,
serialization_tag='full_text_' + root_document_path,
).SQLCatalog_deferFullTextIndexActivity()
getattr(
activateObject(
document,
activity='SQLQueue',
priority=4,
node='same',
group_method_id=GROUP_METHOD_ID,
serialization_tag='full_text_' + root_document_path,
),
METHOD_ID,
)()
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