Some more recent thoughts

svn path=/plone.app.discussion/trunk/; revision=26953
This commit is contained in:
Martin Aspeli
2009-05-16 04:46:47 +00:00
parent d3a9cecf6b
commit e0e313c919
3 changed files with 7 additions and 8 deletions
+1 -5
View File
@@ -44,11 +44,8 @@ class Conversation(Persistent, Explicit):
# id -> comment - find comment by id
self._comments = IOBTree()
# # id -> IISet (children) - find all children for a given comment. 0 signifies root.
# id -> IISet (children) - find all children for a given comment. 0 signifies root.
self._children = IOBTree()
# id -> id (parent) - find the parent for a given comment. 0 signifies root
self._parents = IIBTree()
def getId(self):
"""
@@ -124,4 +121,3 @@ class CommentReplies(ConversationReplies):
def __init__(self, context):
self.conversation = context.__parent__
self.root = context.comment_id