Commit 80e1b4f2 authored by Jim Fulton's avatar Jim Fulton

Fixed (again?) a problem with setting basic properties that

caused the icon to be set incorrectly.
parent b6045c75
......@@ -99,7 +99,7 @@ class ZClassBasicSheet(OFS.PropertySheets.PropertySheet,
"""
if meta_type: self.setClassAttr('meta_type', meta_type)
if file:
if file and (type(file) is type('') or hasattr(file, 'content-type')):
__traceback_info__=file
image=self.getClassAttr('ziconImage', None)
if image is 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