Commit b68549a9 authored by Nicolas Delaby's avatar Nicolas Delaby

Use Document.SearchableText

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@35238 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 6ea8f5ad
...@@ -349,17 +349,6 @@ class Image(TextConvertableMixin, File, OFSImage): ...@@ -349,17 +349,6 @@ class Image(TextConvertableMixin, File, OFSImage):
return mime, image.data return mime, image.data
return self.getContentType(), self.getData() return self.getContentType(), self.getData()
security.declareProtected(Permissions.View, 'getSearchableText')
def getSearchableText(self, md=None):
"""
Converts the content of the document to a textual representation.
"""
mime, data = self.convert(format='txt')
return str(data)
# Compatibility with CMF Catalog
SearchableText = getSearchableText
# Display # Display
security.declareProtected('View', 'index_html') security.declareProtected('View', 'index_html')
def index_html(self, REQUEST, RESPONSE, format=None, display=None, def index_html(self, REQUEST, RESPONSE, format=None, display=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