#NEWLINE# @ addon_view #NEWLINE# @ non_atomic_requests #NEWLINE# def eula( request , addon , file_id = None ) : #NEWLINE# #INDENT# if ( not addon . eula ) : #NEWLINE# #INDENT# return http . HttpResponseRedirect ( addon . get_url_path ( ) ) #NEWLINE# #UNINDENT# if file_id : #NEWLINE# #INDENT# version = get_object_or_404 ( addon . versions , files__id = file_id ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# version = addon . current_version #NEWLINE# #UNINDENT# return render ( request , 'addons/eula.html' , { #NEWLINE# #INDENT# 'addon' : addon , #NEWLINE# 'version' : file_id , #NEWLINE# #UNINDENT# } )