mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-11-04 23:43:20 +08:00
Add is_deferred property to DatasetFilenameWrapper
For improved handling of deferred data
This commit is contained in:
@@ -456,6 +456,10 @@ class DatasetFilenameWrapper(ToolParameterValueWrapper):
|
||||
def is_collection(self) -> bool:
|
||||
return False
|
||||
|
||||
@property
|
||||
def is_deferred(self) -> bool:
|
||||
return self.unsanitized.has_deferred_data
|
||||
|
||||
def is_of_type(self, *exts: str) -> bool:
|
||||
datatypes = []
|
||||
if not self.datatypes_registry:
|
||||
@@ -474,7 +478,7 @@ class DatasetFilenameWrapper(ToolParameterValueWrapper):
|
||||
return self._path_or_uri()
|
||||
|
||||
def _path_or_uri(self) -> str:
|
||||
if self.unsanitized.has_deferred_data:
|
||||
if self.is_deferred:
|
||||
return self.unsanitized.deferred_source_uri or ""
|
||||
if self.false_path is not None:
|
||||
return self.false_path
|
||||
|
||||
Reference in New Issue
Block a user