def referencesGenerator(self, request):
        referenceSet = self.getDataRepository().getReferenceSet(
            request.referenceSetId)
        results = []
        for obj in referenceSet.getReferences():
            include = True
            if request.md5checksum is not None:
                if request.md5checksum != obj.getMd5Checksum():
                    include = False
            if request.accession is not None:
                if request.accession not in obj.getSourceAccessions():
                    include = False
            if include:
                results.append(obj)
        return self._objectListGenerator(request, results)
Transaction using for statement.
dataset/ETHPy150Open ga4gh/server/ga4gh/backend.py/Backend.referencesGenerator--crossover with--dataset/ETHPy150Open StyleShare/flask-volatile/volatiletests/transaction.py/transaction_loop