diff --git a/dcicutils/portal_utils.py b/dcicutils/portal_utils.py index af96a34e9..2928eb3e7 100644 --- a/dcicutils/portal_utils.py +++ b/dcicutils/portal_utils.py @@ -480,7 +480,7 @@ def is_lookup_subtypes(lookup_options: int) -> bool: # noqa lookup_options = Portal.LOOKUP_UNDEFINED if schema := self.get_schema(portal_type): if callable(lookup_strategy): - lookup_options, validator = lookup_strategy(self._portal, self.type, schema, identifying_value) + lookup_options, validator = lookup_strategy(self, self.type, schema, identifying_value) if callable(validator): if validator(schema, identifying_property, identifying_value) is False: continue @@ -499,7 +499,7 @@ def is_lookup_subtypes(lookup_options: int) -> bool: # noqa if is_lookup_root(lookup_options) and not is_lookup_root_first(lookup_options): results.append(f"/{identifying_value}") if is_lookup_subtypes(lookup_options): - for subtype_name in self._portal.get_schema_subtype_names(self.type): + for subtype_name in self.get_schema_subtype_names(self.type): results.append(f"/{subtype_name}/{identifying_value}") return results diff --git a/pyproject.toml b/pyproject.toml index 0282e9e55..6e4f7f517 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "dcicutils" -version = "8.8.6.1b5" +version = "8.8.6.1b6" description = "Utility package for interacting with the 4DN Data Portal and other 4DN resources" authors = ["4DN-DCIC Team "] license = "MIT"