diff --git a/plone/app/discussion/comment.py b/plone/app/discussion/comment.py index b6ef470..c6bb031 100644 --- a/plone/app/discussion/comment.py +++ b/plone/app/discussion/comment.py @@ -64,6 +64,10 @@ class Comment(DynamicType, Traversable, RoleManager, Owned, Implicit): """The id of the comment, as a string """ return self.id + + def getText(self): + '''the text''' + return self.text def Title(self): """The title of the comment @@ -104,4 +108,4 @@ def notify_content_object(obj, event): """Tell the content object when a comment is added """ content_obj = aq_parent(aq_parent(obj)) - content_obj.reindexObject(idxs=('total_comments', 'last_comment_date', 'commentators',)) \ No newline at end of file + content_obj.reindexObject(idxs=('total_comments', 'last_comment_date', 'commentators',)) diff --git a/plone/app/discussion/configure.zcml b/plone/app/discussion/configure.zcml index d44d6a0..a5178a5 100644 --- a/plone/app/discussion/configure.zcml +++ b/plone/app/discussion/configure.zcml @@ -21,7 +21,7 @@ - +