prevent the viewlet from raising an error for objects that are not annotatable

This commit is contained in:
Andreas Zeidler
2013-08-15 00:01:22 +02:00
parent fa7a1acd64
commit b027789391
2 changed files with 12 additions and 1 deletions
+4 -1
View File
@@ -358,7 +358,10 @@ class CommentsViewlet(ViewletBase):
returned with workflow actions.
"""
context = aq_inner(self.context)
conversation = IConversation(context)
conversation = IConversation(context, None)
if conversation is None:
return iter([])
wf = getToolByName(context, 'portal_workflow')