Minor fix. See #1475.

This commit is contained in:
Dion Moult
2021-07-04 20:22:20 +10:00
parent 9286de4813
commit 549bc0e1a9
2 changed files with 3 additions and 5 deletions
@@ -118,8 +118,6 @@ class entity_instance(object):
def __setattr__(self, key, value):
index = self.wrapped_data.get_argument_index(key)
if self.wrapped_data.file.transaction:
self.wrapped_data.file.transaction.store_edit(self, index, value)
self[index] = value
def __getitem__(self, key):
@@ -128,6 +126,9 @@ class entity_instance(object):
return entity_instance.wrap_value(self.wrapped_data.get_argument(key), self.wrapped_data.file)
def __setitem__(self, idx, value):
if self.wrapped_data.file.transaction:
self.wrapped_data.file.transaction.store_edit(self, idx, value)
attr_type = real_attr_type = self.attribute_type(idx).title().replace(" ", "")
real_attr_type = real_attr_type.replace("Derived", "None")
attr_type = attr_type.replace("Binary", "String")