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