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()
 | 
					                obj.indexObject()
 | 
				
			||||||
 | 
					
 | 
				
			||||||
                annotions = IAnnotations(obj)
 | 
					                annotions = IAnnotations(obj)
 | 
				
			||||||
                discussion = queryUtility(ICommentingTool)
 | 
					                ctool = queryUtility(ICommentingTool)
 | 
				
			||||||
                if ANNOTATION_KEY in annotions:
 | 
					                if ANNOTATION_KEY in annotions:
 | 
				
			||||||
                    conversation = annotions[ANNOTATION_KEY]
 | 
					                    conversation = annotions[ANNOTATION_KEY]
 | 
				
			||||||
                    conversation = conversation.__of__(obj)
 | 
					                    conversation = conversation.__of__(obj)
 | 
				
			||||||
                    for comment in conversation.getComments():
 | 
					                    for comment in conversation.getComments():
 | 
				
			||||||
                        try:
 | 
					                        try:
 | 
				
			||||||
                            if discussion:
 | 
					                            if ctool:
 | 
				
			||||||
                                discussion.indexObject(comment)
 | 
					                                ctool.indexObject(comment)
 | 
				
			||||||
                        except StopIteration: # pragma: no cover
 | 
					                        except StopIteration: # pragma: no cover
 | 
				
			||||||
                            pass
 | 
					                            pass
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user