def documents(self):  # a generator for documents
        dataset = Dataset.query.get(self.dataset_id)
        for d in dataset.documents:
            if d.id in self.docIDs:
                yield d
dataset/ETHPy150Open daeilkim/refinery/refinery/refinery/data/models.py/Folder.documents/original