Commit 12ce0025 authored by Jim Fulton's avatar Jim Fulton

Require file to have content type to try to catch when a file

has not been uploaded.
parent 726e7bbd
......@@ -99,7 +99,7 @@ class ZClassBasicSheet(OFS.PropertySheets.PropertySheet,
"""
if meta_type: self.setClassAttr('meta_type', meta_type)
if file: # and hasattr(file, 'content_type'):
if file and hasattr(file, 'content_type'):
__traceback_info__=file
image=self.getClassAttr('ziconImage', None)
if image is None:
......@@ -112,8 +112,6 @@ class ZClassBasicSheet(OFS.PropertySheets.PropertySheet,
icon=(REQUEST['URL3'][len(REQUEST['BASE1'])+1:]
+'/ziconImage')
self.setClassAttr('icon', icon)
if REQUEST is not 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