From 71c7de9d63e2431d400daea8466f9be1881f3a3b Mon Sep 17 00:00:00 2001 From: John Chilton Date: Tue, 2 Feb 2021 11:26:53 -0500 Subject: [PATCH] [WIP] device source stuff... --- lib/galaxy/model/__init__.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/lib/galaxy/model/__init__.py b/lib/galaxy/model/__init__.py index 21b95c852802..e6737a4b05fa 100644 --- a/lib/galaxy/model/__init__.py +++ b/lib/galaxy/model/__init__.py @@ -2827,6 +2827,16 @@ def quota_source_info(self): quota_source_map = self.object_store.get_quota_source_map() return quota_source_map.get_quota_source_info(object_store_id) + @property + def device_source_label(self): + return self.device_source_info.label + + @property + def device_source_info(self): + object_store_id = self.object_store_id + device_source_map = self.object_store.get_quota_source_map() + return device_source_map.get_device_source_info(object_store_id) + def set_file_name(self, filename): if not filename: self.external_filename = None