Commit e7d87a92 authored by 's avatar

Added a change to make sure that Image height and width properties are

always strings.
parent c5c8d8a4
...@@ -84,7 +84,7 @@ ...@@ -84,7 +84,7 @@
############################################################################## ##############################################################################
"""Image object""" """Image object"""
__version__='$Revision: 1.88 $'[11:-2] __version__='$Revision: 1.89 $'[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
...@@ -398,8 +398,8 @@ class Image(File): ...@@ -398,8 +398,8 @@ class Image(File):
renders an HTML 'IMG' tag. renders an HTML 'IMG' tag.
""" """
meta_type='Image' meta_type='Image'
height=0 height=''
width=0 width=''
_properties=({'id':'title', 'type': 'string'}, _properties=({'id':'title', 'type': 'string'},
{'id':'content_type', 'type':'string'}, {'id':'content_type', 'type':'string'},
......
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