Commit 2029e1c3 authored by 's avatar

Fixed bug in File __init__ that broke most all old code that

used the constructor.
parent 92a74752
......@@ -84,7 +84,7 @@
##############################################################################
"""Image object"""
__version__='$Revision: 1.46 $'[11:-2]
__version__='$Revision: 1.47 $'[11:-2]
import Globals
from Globals import HTMLFile, MessageDialog
......@@ -135,8 +135,8 @@ class File(Persistent,Implicit,RoleManager,Item_w__name__):
)
def __init__(self,id,title,file,
precondition='',content_type='application/octet-stream'):
def __init__(self,id,title,file,content_type='application/octet-stream',
precondition=''):
try: headers=file.headers
except: headers=None
......
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