dcicutils 8.8.6.1b9__tar.gz → 8.8.6.1b11__tar.gz
Sign up to get free protection for your applications and to get access to all the features.
- {dcicutils-8.8.6.1b9 → dcicutils-8.8.6.1b11}/PKG-INFO +1 -1
- {dcicutils-8.8.6.1b9 → dcicutils-8.8.6.1b11}/dcicutils/portal_utils.py +9 -2
- {dcicutils-8.8.6.1b9 → dcicutils-8.8.6.1b11}/pyproject.toml +1 -1
- {dcicutils-8.8.6.1b9 → dcicutils-8.8.6.1b11}/LICENSE.txt +0 -0
- {dcicutils-8.8.6.1b9 → dcicutils-8.8.6.1b11}/README.rst +0 -0
- {dcicutils-8.8.6.1b9 → dcicutils-8.8.6.1b11}/dcicutils/__init__.py +0 -0
- {dcicutils-8.8.6.1b9 → dcicutils-8.8.6.1b11}/dcicutils/base.py +0 -0
- {dcicutils-8.8.6.1b9 → dcicutils-8.8.6.1b11}/dcicutils/beanstalk_utils.py +0 -0
- {dcicutils-8.8.6.1b9 → dcicutils-8.8.6.1b11}/dcicutils/bundle_utils.py +0 -0
- {dcicutils-8.8.6.1b9 → dcicutils-8.8.6.1b11}/dcicutils/captured_output.py +0 -0
- {dcicutils-8.8.6.1b9 → dcicutils-8.8.6.1b11}/dcicutils/cloudformation_utils.py +0 -0
- {dcicutils-8.8.6.1b9 → dcicutils-8.8.6.1b11}/dcicutils/codebuild_utils.py +0 -0
- {dcicutils-8.8.6.1b9 → dcicutils-8.8.6.1b11}/dcicutils/command_utils.py +0 -0
- {dcicutils-8.8.6.1b9 → dcicutils-8.8.6.1b11}/dcicutils/common.py +0 -0
- {dcicutils-8.8.6.1b9 → dcicutils-8.8.6.1b11}/dcicutils/contribution_scripts.py +0 -0
- {dcicutils-8.8.6.1b9 → dcicutils-8.8.6.1b11}/dcicutils/contribution_utils.py +0 -0
- {dcicutils-8.8.6.1b9 → dcicutils-8.8.6.1b11}/dcicutils/creds_utils.py +0 -0
- {dcicutils-8.8.6.1b9 → dcicutils-8.8.6.1b11}/dcicutils/data_readers.py +0 -0
- {dcicutils-8.8.6.1b9 → dcicutils-8.8.6.1b11}/dcicutils/data_utils.py +0 -0
- {dcicutils-8.8.6.1b9 → dcicutils-8.8.6.1b11}/dcicutils/datetime_utils.py +0 -0
- {dcicutils-8.8.6.1b9 → dcicutils-8.8.6.1b11}/dcicutils/deployment_utils.py +0 -0
- {dcicutils-8.8.6.1b9 → dcicutils-8.8.6.1b11}/dcicutils/diff_utils.py +0 -0
- {dcicutils-8.8.6.1b9 → dcicutils-8.8.6.1b11}/dcicutils/docker_utils.py +0 -0
- {dcicutils-8.8.6.1b9 → dcicutils-8.8.6.1b11}/dcicutils/ecr_scripts.py +0 -0
- {dcicutils-8.8.6.1b9 → dcicutils-8.8.6.1b11}/dcicutils/ecr_utils.py +0 -0
- {dcicutils-8.8.6.1b9 → dcicutils-8.8.6.1b11}/dcicutils/ecs_utils.py +0 -0
- {dcicutils-8.8.6.1b9 → dcicutils-8.8.6.1b11}/dcicutils/env_base.py +0 -0
- {dcicutils-8.8.6.1b9 → dcicutils-8.8.6.1b11}/dcicutils/env_manager.py +0 -0
- {dcicutils-8.8.6.1b9 → dcicutils-8.8.6.1b11}/dcicutils/env_scripts.py +0 -0
- {dcicutils-8.8.6.1b9 → dcicutils-8.8.6.1b11}/dcicutils/env_utils.py +0 -0
- {dcicutils-8.8.6.1b9 → dcicutils-8.8.6.1b11}/dcicutils/env_utils_legacy.py +0 -0
- {dcicutils-8.8.6.1b9 → dcicutils-8.8.6.1b11}/dcicutils/es_utils.py +0 -0
- {dcicutils-8.8.6.1b9 → dcicutils-8.8.6.1b11}/dcicutils/exceptions.py +0 -0
- {dcicutils-8.8.6.1b9 → dcicutils-8.8.6.1b11}/dcicutils/ff_mocks.py +0 -0
- {dcicutils-8.8.6.1b9 → dcicutils-8.8.6.1b11}/dcicutils/ff_utils.py +0 -0
- {dcicutils-8.8.6.1b9 → dcicutils-8.8.6.1b11}/dcicutils/file_utils.py +0 -0
- {dcicutils-8.8.6.1b9 → dcicutils-8.8.6.1b11}/dcicutils/function_cache_decorator.py +0 -0
- {dcicutils-8.8.6.1b9 → dcicutils-8.8.6.1b11}/dcicutils/glacier_utils.py +0 -0
- {dcicutils-8.8.6.1b9 → dcicutils-8.8.6.1b11}/dcicutils/http_utils.py +0 -0
- {dcicutils-8.8.6.1b9 → dcicutils-8.8.6.1b11}/dcicutils/jh_utils.py +0 -0
- {dcicutils-8.8.6.1b9 → dcicutils-8.8.6.1b11}/dcicutils/kibana/dashboards.json +0 -0
- {dcicutils-8.8.6.1b9 → dcicutils-8.8.6.1b11}/dcicutils/kibana/readme.md +0 -0
- {dcicutils-8.8.6.1b9 → dcicutils-8.8.6.1b11}/dcicutils/lang_utils.py +0 -0
- {dcicutils-8.8.6.1b9 → dcicutils-8.8.6.1b11}/dcicutils/license_policies/c4-infrastructure.jsonc +0 -0
- {dcicutils-8.8.6.1b9 → dcicutils-8.8.6.1b11}/dcicutils/license_policies/c4-python-infrastructure.jsonc +0 -0
- {dcicutils-8.8.6.1b9 → dcicutils-8.8.6.1b11}/dcicutils/license_policies/park-lab-common-server.jsonc +0 -0
- {dcicutils-8.8.6.1b9 → dcicutils-8.8.6.1b11}/dcicutils/license_policies/park-lab-common.jsonc +0 -0
- {dcicutils-8.8.6.1b9 → dcicutils-8.8.6.1b11}/dcicutils/license_policies/park-lab-gpl-pipeline.jsonc +0 -0
- {dcicutils-8.8.6.1b9 → dcicutils-8.8.6.1b11}/dcicutils/license_policies/park-lab-pipeline.jsonc +0 -0
- {dcicutils-8.8.6.1b9 → dcicutils-8.8.6.1b11}/dcicutils/license_utils.py +0 -0
- {dcicutils-8.8.6.1b9 → dcicutils-8.8.6.1b11}/dcicutils/log_utils.py +0 -0
- {dcicutils-8.8.6.1b9 → dcicutils-8.8.6.1b11}/dcicutils/misc_utils.py +0 -0
- {dcicutils-8.8.6.1b9 → dcicutils-8.8.6.1b11}/dcicutils/obfuscation_utils.py +0 -0
- {dcicutils-8.8.6.1b9 → dcicutils-8.8.6.1b11}/dcicutils/opensearch_utils.py +0 -0
- {dcicutils-8.8.6.1b9 → dcicutils-8.8.6.1b11}/dcicutils/portal_object_utils.py +0 -0
- {dcicutils-8.8.6.1b9 → dcicutils-8.8.6.1b11}/dcicutils/progress_bar.py +0 -0
- {dcicutils-8.8.6.1b9 → dcicutils-8.8.6.1b11}/dcicutils/project_utils.py +0 -0
- {dcicutils-8.8.6.1b9 → dcicutils-8.8.6.1b11}/dcicutils/qa_checkers.py +0 -0
- {dcicutils-8.8.6.1b9 → dcicutils-8.8.6.1b11}/dcicutils/qa_utils.py +0 -0
- {dcicutils-8.8.6.1b9 → dcicutils-8.8.6.1b11}/dcicutils/redis_tools.py +0 -0
- {dcicutils-8.8.6.1b9 → dcicutils-8.8.6.1b11}/dcicutils/redis_utils.py +0 -0
- {dcicutils-8.8.6.1b9 → dcicutils-8.8.6.1b11}/dcicutils/s3_utils.py +0 -0
- {dcicutils-8.8.6.1b9 → dcicutils-8.8.6.1b11}/dcicutils/schema_utils.py +0 -0
- {dcicutils-8.8.6.1b9 → dcicutils-8.8.6.1b11}/dcicutils/scripts/publish_to_pypi.py +0 -0
- {dcicutils-8.8.6.1b9 → dcicutils-8.8.6.1b11}/dcicutils/scripts/run_license_checker.py +0 -0
- {dcicutils-8.8.6.1b9 → dcicutils-8.8.6.1b11}/dcicutils/scripts/view_portal_object.py +0 -0
- {dcicutils-8.8.6.1b9 → dcicutils-8.8.6.1b11}/dcicutils/secrets_utils.py +0 -0
- {dcicutils-8.8.6.1b9 → dcicutils-8.8.6.1b11}/dcicutils/sheet_utils.py +0 -0
- {dcicutils-8.8.6.1b9 → dcicutils-8.8.6.1b11}/dcicutils/snapshot_utils.py +0 -0
- {dcicutils-8.8.6.1b9 → dcicutils-8.8.6.1b11}/dcicutils/ssl_certificate_utils.py +0 -0
- {dcicutils-8.8.6.1b9 → dcicutils-8.8.6.1b11}/dcicutils/structured_data.py +0 -0
- {dcicutils-8.8.6.1b9 → dcicutils-8.8.6.1b11}/dcicutils/submitr/progress_constants.py +0 -0
- {dcicutils-8.8.6.1b9 → dcicutils-8.8.6.1b11}/dcicutils/submitr/ref_lookup_strategy.py +0 -0
- {dcicutils-8.8.6.1b9 → dcicutils-8.8.6.1b11}/dcicutils/task_utils.py +0 -0
- {dcicutils-8.8.6.1b9 → dcicutils-8.8.6.1b11}/dcicutils/tmpfile_utils.py +0 -0
- {dcicutils-8.8.6.1b9 → dcicutils-8.8.6.1b11}/dcicutils/trace_utils.py +0 -0
- {dcicutils-8.8.6.1b9 → dcicutils-8.8.6.1b11}/dcicutils/validation_utils.py +0 -0
- {dcicutils-8.8.6.1b9 → dcicutils-8.8.6.1b11}/dcicutils/variant_utils.py +0 -0
- {dcicutils-8.8.6.1b9 → dcicutils-8.8.6.1b11}/dcicutils/zip_utils.py +0 -0
@@ -407,6 +407,7 @@ class Portal:
|
|
407
407
|
|
408
408
|
@function_cache(maxsize=100, serialize_key=True)
|
409
409
|
def get_identifying_paths(self, portal_object: dict, portal_type: Optional[Union[str, dict]] = None,
|
410
|
+
first_only: bool = False,
|
410
411
|
lookup_strategy: Optional[Union[Callable, bool]] = None) -> List[str]:
|
411
412
|
"""
|
412
413
|
Returns the list of the identifying Portal (URL) paths for the given Portal object. Favors any uuid
|
@@ -467,7 +468,10 @@ class Portal:
|
|
467
468
|
# And note the disction of just using /{uuid} here rather than /{type}/{uuid} as in the else
|
468
469
|
# statement below is not really necessary; just here for emphasis that this is all that's needed.
|
469
470
|
#
|
470
|
-
|
471
|
+
if first_only is True:
|
472
|
+
results.append(f"/{portal_type}/{identifying_value}")
|
473
|
+
else:
|
474
|
+
results.append(f"/{identifying_value}")
|
471
475
|
elif isinstance(identifying_value, list):
|
472
476
|
for identifying_value_item in identifying_value:
|
473
477
|
if identifying_value_item:
|
@@ -497,12 +501,15 @@ class Portal:
|
|
497
501
|
if is_lookup_subtypes(lookup_options):
|
498
502
|
for subtype_name in self.get_schema_subtype_names(portal_type):
|
499
503
|
results.append(f"/{subtype_name}/{identifying_value}")
|
504
|
+
if (first_only is True) and results:
|
505
|
+
return results
|
500
506
|
return results
|
501
507
|
|
502
508
|
@function_cache(maxsize=100, serialize_key=True)
|
503
509
|
def get_identifying_path(self, portal_object: dict, portal_type: Optional[Union[str, dict]] = None,
|
504
510
|
lookup_strategy: Optional[Union[Callable, bool]] = None) -> Optional[str]:
|
505
|
-
if identifying_paths := self.
|
511
|
+
if identifying_paths := self.get_identifying_paths(portal_object, portal_type, first_only=True,
|
512
|
+
lookup_strategy=lookup_strategy):
|
506
513
|
return identifying_paths[0]
|
507
514
|
return None
|
508
515
|
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{dcicutils-8.8.6.1b9 → dcicutils-8.8.6.1b11}/dcicutils/license_policies/c4-infrastructure.jsonc
RENAMED
File without changes
|
File without changes
|
{dcicutils-8.8.6.1b9 → dcicutils-8.8.6.1b11}/dcicutils/license_policies/park-lab-common-server.jsonc
RENAMED
File without changes
|
{dcicutils-8.8.6.1b9 → dcicutils-8.8.6.1b11}/dcicutils/license_policies/park-lab-common.jsonc
RENAMED
File without changes
|
{dcicutils-8.8.6.1b9 → dcicutils-8.8.6.1b11}/dcicutils/license_policies/park-lab-gpl-pipeline.jsonc
RENAMED
File without changes
|
{dcicutils-8.8.6.1b9 → dcicutils-8.8.6.1b11}/dcicutils/license_policies/park-lab-pipeline.jsonc
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|