[Erp5-report] r44529 nicolas - /erp5/trunk/products/ERP5/Tool/ContributionTool.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Wed Mar 23 10:51:46 CET 2011
Author: nicolas
Date: Wed Mar 23 10:51:46 2011
New Revision: 44529
URL: http://svn.erp5.org?rev=44529&view=rev
Log:
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.
Modified:
erp5/trunk/products/ERP5/Tool/ContributionTool.py
Modified: erp5/trunk/products/ERP5/Tool/ContributionTool.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/Tool/ContributionTool.py?rev=44529&r1=44528&r2=44529&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Tool/ContributionTool.py [utf8] (original)
+++ erp5/trunk/products/ERP5/Tool/ContributionTool.py [utf8] Wed Mar 23 10:51:46 2011
@@ -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)
More information about the Erp5-report
mailing list