#NEWLINE# def toggleHeldChange( self , change_key ) : #NEWLINE# #INDENT# with self . db . getSession ( ) as session : #NEWLINE# #INDENT# change = session . getChange ( change_key ) #NEWLINE# change . held = ( not change . held ) #NEWLINE# ret = change . held #NEWLINE# if ( not change . held ) : #NEWLINE# #INDENT# for r in change . revisions : #NEWLINE# #INDENT# for m in change . messages : #NEWLINE# #INDENT# if m . pending : #NEWLINE# #INDENT# self . sync . submitTask ( sync . UploadReviewTask ( m . key , sync . HIGH_PRIORITY ) ) #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# #UNINDENT# #UNINDENT# self . updateStatusQueries ( ) #NEWLINE# return m