Currently i am using set_attribute_value_callback and set_attribute_value_setter on the Server. I do this to be able to manage the Value in my own Data structure.
Currently i have the problem, that when ever the Value is written by write_attribute_value i can not read the value again.
This is because attval.value_callback is reset to None even if a value setter is used.
This causes the Value and the value callback to be None, which will result in None being returned by read_attribute_value which cant be serialized.
This fixes this Problem by only setting the attval.value_callback to None if no value Setter is defined.
Currently i am using
set_attribute_value_callback
andset_attribute_value_setter
on the Server. I do this to be able to manage the Value in my own Data structure. Currently i have the problem, that when ever the Value is written bywrite_attribute_value
i can not read the value again. This is becauseattval.value_callback
is reset toNone
even if a value setter is used. This causes the Value and the value callback to beNone
, which will result inNone
being returned byread_attribute_value
which cant be serialized.This fixes this Problem by only setting the
attval.value_callback
toNone
if no value Setter is defined.