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

nobody at svn.erp5.org nobody at svn.erp5.org
Thu Sep 13 21:10:02 CEST 2007


Author: jp
Date: Thu Sep 13 21:10:02 2007
New Revision: 16346

URL: http://svn.erp5.org?rev=16346&view=rev
Log:
Reverted change http://svn.erp5.org/erp5/trunk/products/ERP5/Document/File.py?r1=15833&r2=16164
Setting empty data is incompatible with ERP5 hasData call.
Please make sure it is possible to view a file with no data.

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=16346&r1=16345&r2=16346&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Document/File.py (original)
+++ erp5/trunk/products/ERP5/Document/File.py Thu Sep 13 21:10:02 2007
@@ -37,7 +37,6 @@
 from Products.ERP5.Document.Document import ConversionCacheMixin
 from Products.ERP5Type.Base import Base
 from Products.CMFDefault.File import File as CMFFile
-import OFS
 from zLOG import LOG
 from DateTime import DateTime
 
@@ -106,15 +105,6 @@
 
   # Declarative interfaces
   #__implements__ = ( , )
-  
-  def __init__(self, id, *args, **kw):
-    """Initialize the underlying File. """
-    Document.__init__(self, id, *args, **kw)
-    # We don't call CMFFile.__init__, because it calls DefaultDublinCoreImpl,
-    # which calls some setters that will not work on an ERP5Type.Base object
-    # before beeing in the database. 
-    OFS.Image.File.__init__(self, id, title=None, file='')
-    
 
   ### Special edit method
   security.declarePrivate( '_edit' )




More information about the Erp5-report mailing list