Do not allow the dataset to be purged ( set purgable to False ) for datasets uploaded to a library where the file is not copied into Galaxy's default file location.

This commit is contained in:
Greg Von Kuster
2010-06-09 15:07:39 -04:00
parent 8931b65943
commit 70267eade4
+4 -1
View File
@@ -932,7 +932,10 @@ class LibraryCommon( BaseController ):
if params.get( 'link_data_only', False ):
uploaded_dataset.link_data_only = True
uploaded_dataset.data.file_name = os.path.abspath( path )
trans.sa_session.add( uploaded_dataset.data )
# Since we are not copying the file into Galaxy's managed
# default file location, the dataset should never be purgable.
uploaded_dataset.data.dataset.purgable = False
trans.sa_session.add_all( ( uploaded_dataset.data, uploaded_dataset.data.dataset ) )
trans.sa_session.flush()
return uploaded_dataset
def get_server_dir_uploaded_datasets( self, trans, cntrller, params, full_dir, import_dir_desc, library_bunch, err_redirect, message ):