#NEWLINE# def POST_withdraw_interest( self , workshop , i ) : #NEWLINE# #INDENT# user = account . get_current_user ( ) #NEWLINE# if ( i and user . is_trainer ( ) ) : #NEWLINE# #INDENT# workshop . cancel_interest ( user ) #NEWLINE# signals . workshop_withdraw_interest . send ( workshop , trainer = user ) #NEWLINE# flash ( 'Done! Your interest to conduct the workshop has been cancelled.' ) #NEWLINE# raise web . seeother ( '/workshops/{}' . format ( workshop . id ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return render_template ( 'workshops/view.html' , workshop = workshop )