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