#NEWLINE# @ receiver ( page_saved ) #NEWLINE# def commit( sender , page , author , message , form_extra_data , **kwargs ) : #NEWLINE# #INDENT# parent = form_extra_data . get ( 'parent' , None ) #NEWLINE# was_moved = kwargs . get ( 'was_moved' , False ) #NEWLINE# there_were_changes = Git ( ) . commit ( message , author = author , message = message , parent = parent ) #NEWLINE# if ( there_were_changes and ( not was_moved ) ) : #NEWLINE# #INDENT# msg = _ ( 'There were changes in the page during your edition. Auto-merge has been applied.' ) #NEWLINE# return { #NEWLINE# #INDENT# 'messages' : { #NEWLINE# #INDENT# 'warning' : msg , #NEWLINE# #UNINDENT# } , #NEWLINE# #UNINDENT# }