diff --git a/CHANGELOG.md b/CHANGELOG.md index 2429ef0c4e5387b431dcb2646ea4f8e0019006d5..7786c99562ec215967f5757986a1ebb6a526603d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Added ### ### Changed ### +- Renamed `_Parents` to `_ParentList`. ### Deprecated ### diff --git a/src/caosdb/common/models.py b/src/caosdb/common/models.py index 65e0f18980357b522863c0fdda6fc755d445cfe3..70b4bfa2bf5b6006df2cadf36377aa0337393bda 100644 --- a/src/caosdb/common/models.py +++ b/src/caosdb/common/models.py @@ -112,7 +112,7 @@ class Entity: self.value = value self.messages = _Messages() self.properties = _Properties() - self.parents = _Parents() + self.parents = _ParentList() self.path = None self.file = None self.unit = None @@ -680,7 +680,7 @@ out: bool def get_parents(self): """Get all parents of this entity. - @return: _Parents(list) + @return: _ParentList(list) """ return self.parents @@ -2129,7 +2129,8 @@ class _Properties(list): raise KeyError(str(prop) + " not found.") -class _Parents(list): +class _ParentList(list): + # TODO unclear why this class is private. Isn't it use full for users? def _get_entity_by_cuid(self, cuid): '''