mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
Fixes for Implicit Datatype conversion and external display applications.
This commit is contained in:
@@ -92,6 +92,8 @@ class DisplayApplicationDataParameter( DisplayApplicationParameter ):
|
||||
#find target ext
|
||||
target_ext, converted_dataset = data.find_conversion_destination( self.formats, converter_safe = True )
|
||||
if target_ext and not converted_dataset:
|
||||
if isinstance( data, DisplayDataValueWrapper ):
|
||||
data = data.value
|
||||
assoc = trans.app.model.ImplicitlyConvertedDatasetAssociation( parent = data, file_type = target_ext, metadata_safe = False )
|
||||
new_data = data.datatype.convert_dataset( trans, data, target_ext, return_output = True, visible = False ).values()[0]
|
||||
new_data.hid = data.hid
|
||||
|
||||
@@ -1353,7 +1353,7 @@ class ImplicitlyConvertedDatasetAssociation( object ):
|
||||
elif isinstance(parent, LibraryDatasetDatasetAssociation):
|
||||
self.parent_ldda = parent
|
||||
else:
|
||||
raise AttributeError
|
||||
raise AttributeError, 'Unknown dataset type provided for parent: %s' % type( parent )
|
||||
self.type = file_type
|
||||
self.deleted = deleted
|
||||
self.purged = purged
|
||||
|
||||
Reference in New Issue
Block a user