removed unused method convert_family_attribute_values

This commit is contained in:
iLLiCiTiT 2021-10-05 15:56:55 +02:00
parent dcb74c333b
commit 8eac18e4ef

View file

@ -171,31 +171,6 @@ class BaseCreator:
"""
return []
def convert_family_attribute_values(self, attribute_values):
"""Convert values loaded from workfile metadata.
If passed values match current creator version just return the value
back. Update of changes in workfile must not happen in this method.
Default implementation only convert passed values to right types. But
implementation can be changed to do more stuff (update instance
to newer version etc.).
Args:
attribute_values(dict): Values from instance metadata.
Returns:
dict: Converted values.
"""
attr_defs = self.get_attribute_defs()
for attr_def in attr_defs:
key = attr_def.key
if key in attribute_values:
attribute_values[key] = attr_def.convert_value(
attribute_values[key]
)
return attribute_values
class Creator(BaseCreator):
"""Creator that has more information for artist to show in UI.