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):
getattr(
activateObject( activateObject(
document, document,
activity='SQLQueue', activity='SQLQueue',
...@@ -9,4 +11,6 @@ for document, root_document_path in zip(getPath, getRootDocumentPath): ...@@ -9,4 +11,6 @@ for document, root_document_path in zip(getPath, getRootDocumentPath):
node='same', node='same',
group_method_id=GROUP_METHOD_ID, group_method_id=GROUP_METHOD_ID,
serialization_tag='full_text_' + root_document_path, serialization_tag='full_text_' + root_document_path,
).SQLCatalog_deferFullTextIndexActivity() ),
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