#NEWLINE# def runjoblist( joblist , script = None ) : #NEWLINE# #INDENT# jobfile = open ( 'valSECfilings.jobs' , 'w' ) #NEWLINE# try : #NEWLINE# #INDENT# for job in joblist : #NEWLINE# #INDENT# jobfile . write ( xbrlname ( job ) ) #NEWLINE# jobfile . write ( '\n' ) #NEWLINE# #UNINDENT# #UNINDENT# finally : #NEWLINE# #INDENT# jobfile . close ( ) #NEWLINE# #UNINDENT# print ( 'Running batch of' , len ( joblist ) , 'validation jobs...' ) #NEWLINE# validatejob ( 'valSECfilings.jobs' , script )