#NEWLINE# def POST_express_interest( self , workshop , i ) : #NEWLINE# #INDENT# user = account . get_current_user ( ) #NEWLINE# if ( user and user . is_trainer ( ) ) : #NEWLINE# #INDENT# workshop . record_interest ( user ) #NEWLINE# signals . workshop_express_interest . send ( workshop , trainer = user ) #NEWLINE# flash ( 'Thank you for experessing interest to conduct this workshop.' ) #NEWLINE# raise web . seeother ( '/workshops/{}' . format ( workshop . id ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return render_template ( 'workshops/view.html' , workshop = workshop )