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)
|
||||
if not ANNOTATION_KEY in annotions:
|
||||
conversation = Conversation()
|
||||
annotions[ANNOTATION_KEY] = conversation
|
||||
conversation = annotions[ANNOTATION_KEY]
|
||||
conversation.__parent__ = aq_base(content)
|
||||
return conversation
|
||||
annotions[ANNOTATION_KEY] = conversation
|
||||
else:
|
||||
conversation = annotions[ANNOTATION_KEY]
|
||||
return conversation.__of__(content)
|
||||
|
||||
class ConversationReplies(object):
|
||||
"""An IReplies adapter for conversations.
|
||||
|
Loading…
Reference in New Issue
Block a user