#NEWLINE# def get_export_components( schema_index , previous_export_id = None , filter = None ) : #NEWLINE# #INDENT# '\n    Get all the components needed to build an export file.\n    ' #NEWLINE# previous_export = ( ExportSchema . get ( previous_export_id ) if previous_export_id else None ) #NEWLINE# database = get_db ( ) #NEWLINE# config = ExportConfiguration ( database , schema_index , previous_export , filter ) #NEWLINE# if ( not config . potentially_relevant_ids ) : #NEWLINE# #INDENT# return ( None , None , None ) #NEWLINE# #UNINDENT# updated_schema = config . get_latest_schema ( ) #NEWLINE# export_schema_checkpoint = config . create_new_checkpoint ( ) #NEWLINE# return ( config , previous_export , export_schema_checkpoint )