in_response_to metadata added.

svn path=/plone.app.discussion/trunk/; revision=27789
This commit is contained in:
Timo Stollenwerk
2009-07-03 08:03:09 +00:00
parent d70d872f95
commit 072f903c3a
6 changed files with 19 additions and 9 deletions
+4
View File
@@ -60,6 +60,10 @@ def description(object):
def searchable_text(object):
return object.title, object.text
@indexer(IComment)
def in_response_to(object):
return object.__parent__.__parent__.title_or_id()
@indexer(IComment)
def effective(object):
# the catalog index needs Zope DateTime instead of Python datetime