13 Feb
2016
13 Feb
'16
7:17 p.m.
On Sat, Feb 13, 2016 at 9:24 PM, Jim Unroe rock.unroe@gmail.com wrote:
So it sounds like we should be skipping any immutable fields during set_settings(). So around here:
if element.has_apply_callback(): LOG.debug("Using apply callback") element.run_apply_callback() else: LOG.debug("Setting %s = %s" % (setting, element.value)) setattr(obj, setting, element.value)
What if we changed that else to "elif setting._mutable:" ?
My tester reported back "I just tried it and when I edit the squelch/service settings, I get an error message that says, "Error in setting value: 'str' object has no attribute'_mutable'""
Jim