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. # 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 activateObject = context.getPortalObject().portal_activities.activateObject
for document, root_document_path in zip(getPath, getRootDocumentPath): for document, root_document_path in zip(getPath, getRootDocumentPath):
activateObject( getattr(
document, activateObject(
activity='SQLQueue', document,
priority=4, activity='SQLQueue',
node='same', priority=4,
group_method_id=GROUP_METHOD_ID, node='same',
serialization_tag='full_text_' + root_document_path, group_method_id=GROUP_METHOD_ID,
).SQLCatalog_deferFullTextIndexActivity() 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