Some more recent thoughts
svn path=/plone.app.discussion/trunk/; revision=26953
This commit is contained in:
parent
d3a9cecf6b
commit
e0e313c919
@ -47,8 +47,11 @@ class Comment(Explicit, Traversable, RoleManager, Owned):
|
|||||||
|
|
||||||
for k, v in kw:
|
for k, v in kw:
|
||||||
setattr(self, k, v)
|
setattr(self, k, v)
|
||||||
|
|
||||||
# convenience functions
|
@property
|
||||||
|
def in_reply_to(self):
|
||||||
|
# TODO
|
||||||
|
return None
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def __name__(self):
|
def __name__(self):
|
||||||
|
@ -44,11 +44,8 @@ class Conversation(Persistent, Explicit):
|
|||||||
# id -> comment - find comment by id
|
# id -> comment - find comment by id
|
||||||
self._comments = IOBTree()
|
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()
|
self._children = IOBTree()
|
||||||
|
|
||||||
# id -> id (parent) - find the parent for a given comment. 0 signifies root
|
|
||||||
self._parents = IIBTree()
|
|
||||||
|
|
||||||
def getId(self):
|
def getId(self):
|
||||||
"""
|
"""
|
||||||
@ -124,4 +121,3 @@ class CommentReplies(ConversationReplies):
|
|||||||
def __init__(self, context):
|
def __init__(self, context):
|
||||||
self.conversation = context.__parent__
|
self.conversation = context.__parent__
|
||||||
self.root = context.comment_id
|
self.root = context.comment_id
|
||||||
|
|
2
setup.py
2
setup.py
@ -25,7 +25,7 @@ setup(name='plone.app.discussion',
|
|||||||
zip_safe=False,
|
zip_safe=False,
|
||||||
install_requires=[
|
install_requires=[
|
||||||
'setuptools',
|
'setuptools',
|
||||||
# -*- Extra requirements: -*-
|
'collective.autopermission',
|
||||||
],
|
],
|
||||||
entry_points="""
|
entry_points="""
|
||||||
# -*- Entry points: -*-
|
# -*- Entry points: -*-
|
||||||
|
Loading…
Reference in New Issue
Block a user