def num_comments(object, portal, **kw): conv = IConversation(object, None) if conv is None: return None else: return conv.getNumberOfComments()