Commit b617dfd9 authored by Jim Fulton's avatar Jim Fulton

Provide a default value for the file argument for manage_addFile to allow

an empty file.
parent 68886706
...@@ -84,7 +84,7 @@ ...@@ -84,7 +84,7 @@
############################################################################## ##############################################################################
"""Image object""" """Image object"""
__version__='$Revision: 1.90 $'[11:-2] __version__='$Revision: 1.91 $'[11:-2]
import Globals, string, struct, content_types import Globals, string, struct, content_types
from OFS.content_types import guess_content_type from OFS.content_types import guess_content_type
...@@ -101,7 +101,7 @@ from DateTime import DateTime ...@@ -101,7 +101,7 @@ from DateTime import DateTime
StringType=type('') StringType=type('')
manage_addFileForm=HTMLFile('imageAdd', globals(),Kind='File',kind='file') manage_addFileForm=HTMLFile('imageAdd', globals(),Kind='File',kind='file')
def manage_addFile(self,id,file,title='',precondition='', content_type='', def manage_addFile(self,id,file='',title='',precondition='', content_type='',
REQUEST=None): REQUEST=None):
"""Add a new File object. """Add a new File object.
......
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