let comment Type method return portal_type instead of a string.
svn path=/plone.app.discussion/trunk/; revision=27655
This commit is contained in:
parent
f0e38ff65a
commit
fee068dc09
@ -78,7 +78,7 @@ class Comment(DynamicType, Traversable, RoleManager, Owned, Implicit):
|
|||||||
def Type(self):
|
def Type(self):
|
||||||
"""The Discussion Item content type
|
"""The Discussion Item content type
|
||||||
"""
|
"""
|
||||||
return "Discussion Item"
|
return self.portal_type
|
||||||
|
|
||||||
# CMF's event handlers assume any IDynamicType has these :(
|
# CMF's event handlers assume any IDynamicType has these :(
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user