#NEWLINE# def referencesGenerator( self , request ) : #NEWLINE# #INDENT# '\n        Returns a generator over the (reference, nextPageToken) pairs\n        defined by the specified request.\n        ' #NEWLINE# referenceSet = self . getDataRepository ( ) . getReferenceSet ( request . referenceSetId ) #NEWLINE# results = [ ] #NEWLINE# for obj in referenceSet . getReferences ( ) : #NEWLINE# #INDENT# include = True #NEWLINE# if ( self . md5checksum is not None ) : #NEWLINE# #INDENT# if ( request . md5checksum != obj . getMd5Checksum ( ) ) : #NEWLINE# #INDENT# include = False #NEWLINE# #UNINDENT# #UNINDENT# if ( request . accession is not None ) : #NEWLINE# #INDENT# if ( request . accession not in obj . getSourceAccessions ( ) ) : #NEWLINE# #INDENT# include = False #NEWLINE# #UNINDENT# #UNINDENT# if include : #NEWLINE# #INDENT# results . append ( obj ) #NEWLINE# #UNINDENT# #UNINDENT# return self . _objectListGenerator ( request , results )