comment_title, comment_text, and comment_searchable_text indexes added.

svn path=/plone.app.discussion/trunk/; revision=27247
This commit is contained in:
Timo Stollenwerk
2009-05-31 17:55:46 +00:00
parent 95405ee48f
commit 5f8acfd805
4 changed files with 100 additions and 14 deletions
+16
View File
@@ -4,3 +4,19 @@ indexes with values based on the IComment interface.
Also provide event handlers to actually catalog the comments.
"""
from plone.indexer import indexer
from plone.app.discussion.interfaces import IComment
@indexer(IComment)
def comment_title(object):
return object.title
@indexer(IComment)
def comment_text(object):
return object.text
@indexer(IComment)
def comment_searchable_text(object):
return object.title, object.text