Commit 10835a02 authored by Vincent Pelletier's avatar Vincent Pelletier

ContributionTool: It is pointless to wait for indexation of non-indexable documents

parent f734dd85
......@@ -413,10 +413,12 @@ class ContributionTool(BaseTool):
# If we need to discoverMetadata synchronously, it must
# be for user interface and should thus be handled by
# ZODB scripts
document.activate(after_path_and_method_id=(document.getPath(),
('convertToBaseFormat', 'Document_tryToConvertToBaseFormat',
'immediateReindexObject', 'recursiveImmediateReindexObject')))\
.discoverMetadata(filename=filename,
document.activate(
after_path_and_method_id=(
document.getPath(),
('convertToBaseFormat', 'Document_tryToConvertToBaseFormat'),
),
).discoverMetadata(filename=filename,
user_login=user_login,
input_parameter_dict=input_parameter_dict)
# Keep the document close to us - this is only useful for
......
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