Safer fallback - this method will have a different return signature when implemented

svn path=/plone.app.discussion/trunk/; revision=27064
This commit is contained in:
Martin Aspeli 2009-05-23 15:50:21 +00:00
parent 5a0276e117
commit 7284f2d9e2

View File

@ -108,7 +108,7 @@ class Conversation(Traversable, Persistent, Explicit):
"""Get threaded comments """Get threaded comments
""" """
# TODO - build threads # TODO - build threads
return self._comments.values() raise NotImplemented
def addComment(self, comment): def addComment(self, comment):
"""Add a new comment. The parent id should have been set already. The """Add a new comment. The parent id should have been set already. The
@ -255,8 +255,6 @@ class ConversationReplies(object):
def __contains__(self, key): def __contains__(self, key):
return long(key) in self.children return long(key) in self.children
# TODO: Should __getitem__, get, __iter__, values(), items() and iter* return aq-wrapped comments?
def __getitem__(self, key): def __getitem__(self, key):
"""Get an item by its long key """Get an item by its long key
""" """