[Erp5-report] r41485 nicolas.dumazet - /erp5/trunk/products/ERP5/Tool/ContributionTool.py

nobody at svn.erp5.org nobody at svn.erp5.org
Thu Dec 16 10:03:59 CET 2010


Author: nicolas.dumazet
Date: Thu Dec 16 10:03:58 2010
New Revision: 41485

URL: http://svn.erp5.org?rev=41485&view=rev
Log:
revert my 41477: a better patch by Nicolas (the first ;) is awaiting review


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=41485&r1=41484&r2=41485&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Tool/ContributionTool.py [utf8] (original)
+++ erp5/trunk/products/ERP5/Tool/ContributionTool.py [utf8] Thu Dec 16 10:03:58 2010
@@ -203,14 +203,8 @@ class ContributionTool(BaseTool):
 
     if portal_type is None:
       # Guess it with help of portal_contribution_registry
-
-      # XXX may be broken for non-cStringIO files / IO that cant be replayed?
-      data = file_object.read()
-      file_object.seek(0)
-
       registry = portal.portal_contribution_registry
       portal_type = registry.findPortalTypeName(filename=filename,
-                                                data=data,
                                                 content_type=content_type)
     #
     # Check if same file is already exists. if it exists, then update it.



More information about the Erp5-report mailing list