let comment Type method return portal_type instead of a string.

svn path=/plone.app.discussion/trunk/; revision=27655
This commit is contained in:
Timo Stollenwerk 2009-06-24 13:18:54 +00:00
parent f0e38ff65a
commit fee068dc09

View File

@ -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 :(