Rename discussion var to ctool which is more appropriate.
This commit is contained in:
		
							parent
							
								
									7dc3e0c6f9
								
							
						
					
					
						commit
						5e81422cd1
					
				@ -26,14 +26,14 @@ def patchedClearFindAndRebuild(self):
 | 
			
		||||
                obj.indexObject()
 | 
			
		||||
 | 
			
		||||
                annotions = IAnnotations(obj)
 | 
			
		||||
                discussion = queryUtility(ICommentingTool)
 | 
			
		||||
                ctool = queryUtility(ICommentingTool)
 | 
			
		||||
                if ANNOTATION_KEY in annotions:
 | 
			
		||||
                    conversation = annotions[ANNOTATION_KEY]
 | 
			
		||||
                    conversation = conversation.__of__(obj)
 | 
			
		||||
                    for comment in conversation.getComments():
 | 
			
		||||
                        try:
 | 
			
		||||
                            if discussion:
 | 
			
		||||
                                discussion.indexObject(comment)
 | 
			
		||||
                            if ctool:
 | 
			
		||||
                                ctool.indexObject(comment)
 | 
			
		||||
                        except StopIteration: # pragma: no cover
 | 
			
		||||
                            pass
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user