Commit 7ea618e5 authored by Nicolas Delaby's avatar Nicolas Delaby

It is required to postpone execution of discoverMetadata after

indexation of document, because migratePortalType method try to update related categories.
So it needs an up to date catalog state in order to succeeds.



git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@44529 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 5ff71403
......@@ -405,7 +405,8 @@ class ContributionTool(BaseTool):
# be for user interface and should thus be handled by
# ZODB scripts
document.activate(after_path_and_method_id=(document.getPath(),
('convertToBaseFormat', 'Document_tryToConvertToBaseFormat'))) \
('convertToBaseFormat', 'Document_tryToConvertToBaseFormat',
'immediateReindexObject', 'recursiveImmediateReindexObject')))\
.discoverMetadata(filename=filename,
user_login=user_login,
input_parameter_dict=input_parameter_dict)
......
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