[Erp5-report] r40379 jerome - /erp5/trunk/products/ERP5/Document/File.py

nobody at svn.erp5.org nobody at svn.erp5.org
Thu Nov 18 15:52:40 CET 2010


Author: jerome
Date: Thu Nov 18 15:52:39 2010
New Revision: 40379

URL: http://svn.erp5.org?rev=40379&view=rev
Log:
we don't want to display raw file content on __str__ like in OFS.File

Modified:
    erp5/trunk/products/ERP5/Document/File.py

Modified: erp5/trunk/products/ERP5/Document/File.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/Document/File.py?rev=40379&r1=40378&r2=40379&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Document/File.py [utf8] (original)
+++ erp5/trunk/products/ERP5/Document/File.py [utf8] Thu Nov 18 15:52:39 2010
@@ -88,6 +88,9 @@ class File(Document, CMFFile):
                     , PropertySheet.Periodicity
     )
 
+  # OFS.File has an overloaded __str__ that returns the file content
+  __str__ = object.__str__
+
   ### Special edit method
   security.declarePrivate( '_edit' )
   def _edit(self, **kw):




More information about the Erp5-report mailing list