#NEWLINE# def getFilesFromTrove( self , name , version , flavor , fileList = None , trv = None ) : #NEWLINE# #INDENT# repos = self . getRepos ( ) #NEWLINE# if ( not fileList ) : #NEWLINE# #INDENT# fileList = [ ] #NEWLINE# trv = repos . getTrove ( name , version , flavor , withFiles = True ) #NEWLINE# fileObs = repos . getFileVersions ( [ ( x [ 0 ] , x [ 2 ] , x [ 3 ] ) for x in trv . iterFileList ( ) ] ) #NEWLINE# for ( idx , ( pathId , path , fileId , fileVer ) ) in enumerate ( trv . iterFileList ( ) ) : #NEWLINE# #INDENT# fileObj = fileObs [ idx ] #NEWLINE# if fileObj . hasContents : #NEWLINE# #INDENT# fileList . append ( path ) #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# contents = repos . getFileContentsFromTrove ( name , version , flavor , fileList ) #NEWLINE# return dict ( ( ( x [ 0 ] , x [ 1 ] . get ( ) ) for x in zip ( fileList , contents ) ) )