commit/galaxy-central: dannon: Update collect_child_datasets to work with ObjectStore.
1 new commit in galaxy-central: https://bitbucket.org/galaxy/galaxy-central/changeset/8718607f7ae5/ changeset: 8718607f7ae5 user: dannon date: 2011-12-09 16:19:20 summary: Update collect_child_datasets to work with ObjectStore. affected #: 1 file diff -r 187267753315c372a684a5170d053a6b561aebb5 -r 8718607f7ae5554b6a43caff974a4949eb504950 lib/galaxy/tools/__init__.py --- a/lib/galaxy/tools/__init__.py +++ b/lib/galaxy/tools/__init__.py @@ -1890,7 +1890,7 @@ sa_session=self.sa_session ) self.app.security_agent.copy_dataset_permissions( outdata.dataset, child_dataset.dataset ) # Move data from temp location to dataset location - shutil.move( filename, child_dataset.file_name ) + self.app.object_store.update_from_file(child_dataset.dataset.id, filename, create=True) self.sa_session.add( child_dataset ) self.sa_session.flush() child_dataset.set_size() @@ -1902,7 +1902,7 @@ job = None for assoc in outdata.creating_job_associations: job = assoc.job - break + break if job: assoc = self.app.model.JobToOutputDatasetAssociation( '__new_child_file_%s|%s__' % ( name, designation ), child_dataset ) assoc.job = job Repository URL: https://bitbucket.org/galaxy/galaxy-central/ -- This is a commit notification from bitbucket.org. You are receiving this because you have the service enabled, addressing the recipient of this email.
participants (1)
-
Bitbucket