#NEWLINE# def __init__( self , task , file_ref_id ) : #NEWLINE# #INDENT# self . task = task #NEWLINE# self . progress = 0 #NEWLINE# if self . task : #NEWLINE# #INDENT# DownloadBase . set_progress ( self . task , 0 , 100 ) #NEWLINE# #UNINDENT# download_ref = DownloadBase . get ( file_ref_id ) #NEWLINE# if ( download_ref is None ) : #NEWLINE# #INDENT# raise UnknownFileRefException ( ( 'Could not find file wih ref %s. It may have expired' % file_ref_id ) ) #NEWLINE# #UNINDENT# self . workbook = WorkbookJSONReader ( download_ref . get_filename ( ) )