Commit a823fb3e authored by Jérome Perrin's avatar Jérome Perrin

set File.data to an empty string, otherwise get_size will not return 0 on an

empty file.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@16361 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 42cd2e22
...@@ -84,7 +84,7 @@ class File(Document, CMFFile, ConversionCacheMixin): ...@@ -84,7 +84,7 @@ class File(Document, CMFFile, ConversionCacheMixin):
# Default global values # Default global values
content_type = '' # Required for WebDAV support (default value) content_type = '' # Required for WebDAV support (default value)
data = 'Empty File' # A hack required to use OFS.Image.index_html without calling OFS.Image.__init__ data = '' # A hack required to use OFS.Image.index_html without calling OFS.Image.__init__
# Default Properties # Default Properties
property_sheets = ( PropertySheet.Base property_sheets = ( PropertySheet.Base
......
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