mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-26 13:52:15 +01:00
creators have more responsibility about instances
This commit is contained in:
parent
1d0e08721f
commit
6fcb38fc72
1 changed files with 12 additions and 2 deletions
|
|
@ -90,14 +90,24 @@ class BaseCreator:
|
|||
"""
|
||||
pass
|
||||
|
||||
def remove_instance(self, instance):
|
||||
@abstractmethod
|
||||
def collect_instances(self, attr_plugins=None):
|
||||
pass
|
||||
|
||||
@abstractmethod
|
||||
def update_instances(self, update_list):
|
||||
pass
|
||||
|
||||
@abstractmethod
|
||||
def remove_instances(self, instances):
|
||||
"""Method called on instance removement.
|
||||
|
||||
Can also remove instance metadata from context but should return
|
||||
'True' if did so.
|
||||
|
||||
Args:
|
||||
instance(CreatedInstance): Instance object which will be removed.
|
||||
instance(list<CreatedInstance>): Instance objects which should be
|
||||
removed.
|
||||
|
||||
Returns:
|
||||
bool: Instance was removed completely and is not required to call
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue