From 2dad7010f2ef6999e871e92e993a572174bd628d Mon Sep 17 00:00:00 2001 From: abram axel booth Date: Fri, 18 Oct 2024 10:59:34 -0400 Subject: [PATCH] wip osf:storageRegion --- osf/metadata/osf_gathering.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/osf/metadata/osf_gathering.py b/osf/metadata/osf_gathering.py index 593a0bded38..27d5c0ecd6d 100644 --- a/osf/metadata/osf_gathering.py +++ b/osf/metadata/osf_gathering.py @@ -1134,3 +1134,10 @@ def gather_addons(focus): yield (_addon_ref, RDF.type, OSF.AddonImplementation) yield (_addon_ref, DCTERMS.identifier, _addon_settings.short_name) yield (_addon_ref, SKOS.prefLabel, _addon_settings.config.full_name) + + +@gather.er(OSF.storageRegion) +def gather_storage_region(focus): + _osfstorage_region = getattr(focus.dbmodel, 'osfstorage_region', None) + if _osfstorage_region is not None: + ...