Always set the effective date of a comment to the same value as the creation date.

svn path=/plone.app.discussion/trunk/; revision=46019
This commit is contained in:
Timo Stollenwerk
2010-11-29 17:36:52 +00:00
parent b26d5a5a62
commit f0cecaf274
3 changed files with 12 additions and 2 deletions
+6 -2
View File
@@ -90,8 +90,12 @@ def in_response_to(object):
@indexer(IComment)
def effective(object):
# the catalog index needs Zope DateTime instead of Python datetime
# Todo!!!
return DateTime
return DateTime(object.creation_date.year,
object.creation_date.month,
object.creation_date.day,
object.creation_date.hour,
object.creation_date.minute,
object.creation_date.second)
@indexer(IComment)
def created(object):