[galaxy-commits] commit/galaxy-central: natefoo: Ensure that the history export dataset is created when the job is created.

Bitbucket commits-noreply at bitbucket.org
Fri Jan 27 15:36:03 EST 2012


1 new commit in galaxy-central:


https://bitbucket.org/galaxy/galaxy-central/changeset/cb458aca542e/
changeset:   cb458aca542e
user:        natefoo
date:        2012-01-27 21:35:57
summary:     Ensure that the history export dataset is created when the job is created.
affected #:  1 file

diff -r 56bdee21dc785c5f941510537978d71c4e9799c5 -r cb458aca542e67c41d1139d0356a6d09d2b12443 lib/galaxy/tools/actions/history_imp_exp.py
--- a/lib/galaxy/tools/actions/history_imp_exp.py
+++ b/lib/galaxy/tools/actions/history_imp_exp.py
@@ -88,8 +88,8 @@
         archive_dataset = trans.app.model.Dataset()
         trans.sa_session.add( archive_dataset )
         
-        
         trans.sa_session.flush() #ensure job.id and archive_dataset.id are available
+        trans.app.object_store.create( archive_dataset ) # set the object store id, create dataset (if applicable)
         
         #
         # Setup job and job wrapper.
@@ -123,4 +123,4 @@
         trans.app.job_queue.put( job.id, tool )
         trans.log_event( "Added export history job to the job queue, id: %s" % str(job.id), tool_id=job.tool_id )
                 
-        return job, odict()
\ No newline at end of file
+        return job, odict()

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.


More information about the galaxy-commits mailing list