From b68549a9564c6b3cecf13c66511745a768de6f6a Mon Sep 17 00:00:00 2001 From: Nicolas Delaby <nicolas@nexedi.com> Date: Wed, 12 May 2010 15:45:04 +0000 Subject: [PATCH] Use Document.SearchableText git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@35238 20353a03-c40f-0410-a6d1-a30d3c3de9de --- product/ERP5/Document/Image.py | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/product/ERP5/Document/Image.py b/product/ERP5/Document/Image.py index 4e96cc71d9..cf0cbd25d3 100644 --- a/product/ERP5/Document/Image.py +++ b/product/ERP5/Document/Image.py @@ -349,17 +349,6 @@ class Image(TextConvertableMixin, File, OFSImage): return mime, image.data 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 security.declareProtected('View', 'index_html') def index_html(self, REQUEST, RESPONSE, format=None, display=None, -- 2.30.9