Commit 453475ca authored by Yoshinori Okuji's avatar Yoshinori Okuji

Define getSearchableText and make SeachableText as an alias for getSearchableText.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@1387 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent b809873b
......@@ -1476,6 +1476,20 @@ class Base( CopyContainer, PortalContent, Base18, ActiveObject, ERP5PropertyMana
local_permission_list = (local_permission_list,)
setattr(self,permission_name,tuple(local_permission_list))
### Content accessor methods
security.declareProtected(Permissions.View, 'getSearchableText')
def getSearchableText(self, md=None):
"""\
Used by the catalog for basic full text indexing
We should try to do some kind of file conversion here
"""
searchable_text = "%s %s %s" % (self.getTitle(), self.getDescription(),
self.getId())
return searchable_text
# Compatibility with CMF Catalog / CPS sites
SearchableText = getSearchableText
InitializeClass(Base)
class TempBase(Base):
......
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