conversationAdapterFactory now always returns the acquisition wrapped conversation object.
svn path=/plone.app.discussion/trunk/; revision=27500
This commit is contained in:
parent
0a706dec70
commit
476cc1c5e7
@ -308,10 +308,11 @@ def conversationAdapterFactory(content):
|
|||||||
annotions = IAnnotations(content)
|
annotions = IAnnotations(content)
|
||||||
if not ANNOTATION_KEY in annotions:
|
if not ANNOTATION_KEY in annotions:
|
||||||
conversation = Conversation()
|
conversation = Conversation()
|
||||||
|
conversation.__parent__ = aq_base(content)
|
||||||
annotions[ANNOTATION_KEY] = conversation
|
annotions[ANNOTATION_KEY] = conversation
|
||||||
conversation = annotions[ANNOTATION_KEY]
|
else:
|
||||||
conversation.__parent__ = aq_base(content)
|
conversation = annotions[ANNOTATION_KEY]
|
||||||
return conversation
|
return conversation.__of__(content)
|
||||||
|
|
||||||
class ConversationReplies(object):
|
class ConversationReplies(object):
|
||||||
"""An IReplies adapter for conversations.
|
"""An IReplies adapter for conversations.
|
||||||
|
Loading…
Reference in New Issue
Block a user