From fee068dc09d50fef56cedbe532996c96628843b2 Mon Sep 17 00:00:00 2001 From: Timo Stollenwerk Date: Wed, 24 Jun 2009 13:18:54 +0000 Subject: [PATCH] let comment Type method return portal_type instead of a string. svn path=/plone.app.discussion/trunk/; revision=27655 --- plone/app/discussion/comment.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plone/app/discussion/comment.py b/plone/app/discussion/comment.py index dac227b..943f11e 100644 --- a/plone/app/discussion/comment.py +++ b/plone/app/discussion/comment.py @@ -78,7 +78,7 @@ class Comment(DynamicType, Traversable, RoleManager, Owned, Implicit): def Type(self): """The Discussion Item content type """ - return "Discussion Item" + return self.portal_type # CMF's event handlers assume any IDynamicType has these :(