#NEWLINE# def fileOpenFile( self , filename , importToDTS = False , selectTopView = False ) : #NEWLINE# #INDENT# if filename : #NEWLINE# #INDENT# filesource = None #NEWLINE# filesource = openFileSource ( filename , self , checkIfXmlIsEis = ( self . modelManager . disclosureSystem and ( self . modelManager . disclosureSystem . validationType == 'EFM' ) ) ) #NEWLINE# if ( filesource . isArchive and ( not filesource . selection ) ) : #NEWLINE# #INDENT# from arelle import DialogOpenArchive #NEWLINE# filename = DialogOpenArchive . askArchiveFile ( self , filesource ) #NEWLINE# #UNINDENT# #UNINDENT# if filename : #NEWLINE# #INDENT# if importToDTS : #NEWLINE# #INDENT# if ( not isHttpUrl ( filename ) ) : #NEWLINE# #INDENT# self . config [ 'importOpenDir' ] = os . path . dirname ( filename ) #NEWLINE# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# if ( not isHttpUrl ( filename ) ) : #NEWLINE# #INDENT# self . config [ 'fileOpenDir' ] = os . path . dirname ( ( filesource . baseurl if filesource . isArchive else filename ) ) #NEWLINE# #UNINDENT# #UNINDENT# self . updateFileHistory ( filename , importToDTS ) #NEWLINE# thread = threading . Thread ( target = ( lambda : self . backgroundLoadXbrl ( filesource , importToDTS , selectTopView ) ) ) #NEWLINE# thread . daemon = True #NEWLINE# thread . start ( )