[Erp5-report] r41491 nicolas - /erp5/trunk/products/ERP5/Tool/ContributionTool.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Thu Dec 16 11:55:35 CET 2010
Author: nicolas
Date: Thu Dec 16 11:55:35 2010
New Revision: 41491
URL: http://svn.erp5.org?rev=41491&view=rev
Log:
Coding Crime: never change what user inputs
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=41491&r1=41490&r2=41491&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Tool/ContributionTool.py [utf8] (original)
+++ erp5/trunk/products/ERP5/Tool/ContributionTool.py [utf8] Thu Dec 16 11:55:35 2010
@@ -243,11 +243,6 @@ class ContributionTool(BaseTool):
)
object_id = document.getId()
document = self._getOb(object_id) # Call _getOb to purge cache
- rewrite_method = document._getTypeBasedMethod('rewriteIngestionData')
- if rewrite_method is not None:
- modified_kw = rewrite_method(**kw.copy())
- if modified_kw is not None:
- kw.update(modified_kw)
kw['filename'] = filename # Override filename property
# Then edit the document contents (so that upload can happen)
More information about the Erp5-report
mailing list