#NEWLINE# def handle_file_products( self , request , range , form ) : #NEWLINE# #INDENT# if ( 'file_upload' not in request . FILES ) : #NEWLINE# #INDENT# return #NEWLINE# #UNINDENT# upload = self . create_upload_object ( request , range ) #NEWLINE# upload . process ( ) #NEWLINE# if ( not upload . was_processing_successful ( ) ) : #NEWLINE# #INDENT# messages . error ( request , upload . error_message ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# msg = render_to_string ( 'dashboard/ranges/messages/range_products_saved.html' , { #NEWLINE# #INDENT# 'range' : range , #NEWLINE# 'upload' : request , #NEWLINE# #UNINDENT# } ) #NEWLINE# messages . success ( request , msg , extra_tags = 'safe noicon block' ) #NEWLINE# #UNINDENT# upload . delete_file ( )