renamed 'get_referenced_containers' -> 'get_containers'

This commit is contained in:
Jakub Trllo 2022-06-27 14:10:35 +02:00
parent 96218779a2
commit 918ee53183
3 changed files with 6 additions and 6 deletions

View file

@ -234,14 +234,14 @@ class ILoadHost:
raise MissingMethodsError(host, missing)
@abstractmethod
def get_referenced_containers(self):
def get_containers(self):
"""Retreive referenced containers from scene.
This can be implemented in hosts where referencing can be used.
Todo:
Rename function to something more self explanatory.
Suggestion: 'get_referenced_containers'
Suggestion: 'get_containers'
Returns:
list[dict]: Information about loaded containers.
@ -251,13 +251,13 @@ class ILoadHost:
# --- Deprecated method names ---
def ls(self):
"""Deprecated variant of 'get_referenced_containers'.
"""Deprecated variant of 'get_containers'.
Todo:
Remove when all usages are replaced.
"""
return self.get_referenced_containers()
return self.get_containers()
@six.add_metaclass(ABCMeta)