Commit 0fd43e44 authored by Nicolas Delaby's avatar Nicolas Delaby

Make asText method available on images


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@35235 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 88e6dbfe
......@@ -52,6 +52,9 @@ except ImportError:
from zope.contenttype import guess_content_type
from zLOG import LOG, WARNING
# import mixin
from Products.ERP5.mixin.text_convertable import TextConvertableMixin
from Products.CMFCore.utils import getToolByName
DEFAULT_DISPLAY_ID_LIST = ('nano', 'micro', 'thumbnail',
......@@ -60,7 +63,7 @@ DEFAULT_DISPLAY_ID_LIST = ('nano', 'micro', 'thumbnail',
DEFAULT_QUALITY = 75
class Image(File, OFSImage):
class Image(TextConvertableMixin, File, OFSImage):
"""
An Image is a File which contains image data. It supports
various conversions of format, size, resolution through
......
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