Commit 07afb9f6 authored by Jean-Paul Smets's avatar Jean-Paul Smets

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.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@16346 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent c0442128
......@@ -37,7 +37,6 @@ from Products.ERP5.Document.Document import Document
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 @@ class File(Document, CMFFile, ConversionCacheMixin):
# 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' )
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment