Commit 93ecbd5f authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

since getSearchableText is already well configurable in ERP5Type.Base, we...

since getSearchableText is already well configurable in ERP5Type.Base, we should no longer have such a definition here (and using self.title instead of self.getTitle() is bad anyway).


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@45060 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent feedba09
No related merge requests found
......@@ -118,18 +118,6 @@ class Coordinate(Base):
"""
return self()
security.declareProtected( Permissions.AccessContentsInformation,
'getSearchableText' )
def getSearchableText(self):
"""
text for indexing
"""
return "%s %s %s" % (self.title, self.description, self.asText())
security.declareProtected( Permissions.AccessContentsInformation,
'SearchableText' )
SearchableText = getSearchableText
security.declareProtected( Permissions.AccessContentsInformation,
'asText' )
def asText(self):
......
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