Commit 8096beb3 authored by Yoshinori Okuji's avatar Yoshinori Okuji

Remove SearchableText. Now in Base.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@1388 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 453475ca
......@@ -119,23 +119,6 @@ or 'HTML'. Text can be automatically translated through the use of\
)
}
### Content accessor methods
security.declareProtected(Permissions.View, 'SearchableText')
def SearchableText(self, md=None):
"""\
Used by the catalog for basic full text indexing
We are going to concatenate all available translations
"""
if md is None: md = self.findMessageCatalog()
searchable_text = ""
for lang in md.get_languages():
searchable_text = searchable_text + "%s %s %s" % (
md.gettext(self.Title(),lang)
, md.gettext(self.Description(),lang)
, self.TranslatedBody(lang=lang)
)
return searchable_text
### Specific Translation methods
security.declareProtected(Permissions.View, 'TranslatedBody')
def TranslatedBody(self, stx_level=None, setlevel=0, lang=None, md=None):
......
......@@ -120,23 +120,6 @@ or 'HTML'. Text can be automatically translated through the use of\
)
}
### Content accessor methods
security.declareProtected(Permissions.View, 'SearchableText')
def SearchableText(self, md=None):
"""\
Used by the catalog for basic full text indexing
We should try to do some kind of file conversion here
"""
if md is None: md = self.findMessageCatalog()
searchable_text = ""
for lang in md.get_languages():
searchable_text = searchable_text + "%s %s" % (
md.gettext(self.Title(),lang)
, md.gettext(self.Description(),lang)
)
return searchable_text
### Special edit method
security.declarePrivate( '_edit' )
def _edit(self, **kw):
......
......@@ -136,22 +136,6 @@ or 'HTML'. Text can be automatically translated through the use of\
self._data = ''
self.store = store
### Content accessor methods
security.declareProtected(Permissions.View, 'SearchableText')
def SearchableText(self, md=None):
"""\
Used by the catalog for basic full text indexing
We should try to do some kind of file conversion here
"""
if md is None: md = self.findMessageCatalog()
searchable_text = ""
for lang in md.get_languages():
searchable_text = searchable_text + "%s %s" % (
md.gettext(self.Title(),lang)
, md.gettext(self.Description(),lang)
)
return searchable_text
### Special edit method
security.declarePrivate( '_edit' )
def _edit(self, **kw):
......
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