11 lines
		
	
	
		
			396 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			11 lines
		
	
	
		
			396 B
		
	
	
	
		
			Python
		
	
	
	
	
	
| # Copyright (c) 2013, Web Notes Technologies Pvt. Ltd. and Contributors
 | |
| # License: GNU General Public License v3. See license.txt
 | |
| 
 | |
| def execute():
 | |
| 	import webnotes
 | |
| 	webnotes.conn.auto_commit_on_many_writes = True
 | |
| 	for name in webnotes.conn.sql_list("""select name from tabComment"""):
 | |
| 		webnotes.get_obj("Comment", name).update_comment_in_doc()
 | |
| 	webnotes.conn.auto_commit_on_many_writes = False
 | |
| 	
 |