fix failing test in CMFPlone. some things are contentish but not adaptable to IConversation (such as collection criteria)
svn path=/plone.app.discussion/trunk/; revision=51682
This commit is contained in:
		
							parent
							
								
									6e157df3d3
								
							
						
					
					
						commit
						2b10fd06e2
					
				@ -4,6 +4,9 @@ Changelog
 | 
			
		||||
2.1.0 (unreleased)
 | 
			
		||||
------------------
 | 
			
		||||
 | 
			
		||||
- Avoid error when moving objects that are contentish but not annotatable.
 | 
			
		||||
  [davisagli]
 | 
			
		||||
 | 
			
		||||
- New feature: Markdown syntax added to possible comment text transforms.
 | 
			
		||||
  [timo]
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -234,10 +234,11 @@ def notify_content_object_moved(obj, event):
 | 
			
		||||
    for brain in brains:
 | 
			
		||||
        catalog.uncatalog_object(brain.getPath())
 | 
			
		||||
    # Reindex comment at the new location
 | 
			
		||||
    conversation = IConversation(obj)
 | 
			
		||||
    for comment in conversation.getComments():
 | 
			
		||||
        aq_base(comment).__parent__.__parent__.__parent__ = event.newParent
 | 
			
		||||
        catalog.reindexObject(aq_base(comment))
 | 
			
		||||
    conversation = IConversation(obj, None)
 | 
			
		||||
    if conversation is not None:
 | 
			
		||||
        for comment in conversation.getComments():
 | 
			
		||||
            aq_base(comment).__parent__.__parent__.__parent__ = event.newParent
 | 
			
		||||
            catalog.reindexObject(aq_base(comment))
 | 
			
		||||
    
 | 
			
		||||
 | 
			
		||||
def notify_user(obj, event):
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user