mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-02 08:54:53 +01:00
use PublishAttributes in CreatedInstance
This commit is contained in:
parent
dee5b66292
commit
9375daac07
1 changed files with 10 additions and 1 deletions
|
|
@ -244,7 +244,9 @@ class CreatedInstance:
|
|||
|
||||
# Stored publish specific attribute values
|
||||
# {<plugin name>: {key: value}}
|
||||
self._data["publish_attributes"] = {}
|
||||
self._data["publish_attributes"] = PublishAttributes(
|
||||
self, orig_publish_attributes, attr_plugins
|
||||
)
|
||||
if data:
|
||||
self._data.update(data)
|
||||
|
||||
|
|
@ -281,6 +283,10 @@ class CreatedInstance:
|
|||
def family_attribute_defs(self):
|
||||
return self._data["family_attributes"].attr_defs
|
||||
|
||||
@property
|
||||
def publish_attributes(self):
|
||||
return self._data["publish_attributes"]
|
||||
|
||||
def data_to_store(self):
|
||||
output = collections.OrderedDict()
|
||||
for key, value in self._data.items():
|
||||
|
|
@ -318,6 +324,9 @@ class CreatedInstance:
|
|||
attr_plugins, new=False
|
||||
)
|
||||
|
||||
def set_publish_plugins(self, attr_plugins):
|
||||
self._data["publish_attributes"].set_publish_plugins(attr_plugins)
|
||||
|
||||
|
||||
|
||||
@six.add_metaclass(ABCMeta)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue