Skip to content

put_device_property(): use StdStringVector as seq<str>

Jairo Moldes requested to merge github/fork/jairomoldes/tango9 into tango9

There is a problem when calling put_device_property() if you pass it a dictionary and the value is a StdStringVector (the value returned by get_device_property()). You can easily reproduce the problem using this code:

import PyTango
db = PyTango.Database()
db.put_device_property('sys/tg_test/01', {'Test': (1,2,3)})
prop = db.get_device_property('sys/tg_test/01', 'Test')
print prop
db.put_device_property('sys/tg_test/01', prop)
prop = db.get_device_property('sys/tg_test/01', 'Test')
print prop

Merge request reports