Skip to content

Commit

Permalink
[WIP] device source stuff...
Browse files Browse the repository at this point in the history
  • Loading branch information
jmchilton committed Jul 26, 2022
1 parent 77be402 commit 5eca6d4
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions lib/galaxy/model/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3783,6 +3783,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
Expand Down

0 comments on commit 5eca6d4

Please sign in to comment.