master.slave[-1] = val now works correctly

This commit is contained in:
2016-03-21 17:06:38 +01:00
parent 7305cfa134
commit f03a31b454
2 changed files with 31 additions and 0 deletions

View File

@ -725,6 +725,8 @@ class Multi(list):
context = self._getcontext()
setting = context.cfgimpl_get_settings()
setting_properties = setting._getproperties(read_write=False)
if index < 0:
index = self.__len__() + index
if 'validator' in setting_properties and validate:
fake_context = context._gen_fake_values()
fake_multi = fake_context.cfgimpl_get_values()._get_cached_value(