taurus.Device as PyTango.DeviceProxy for writing attributes
Hi, concerning the writing and reading of Tango attribute, we (at DESY) would like to have in a Tango device instantiated from taurus.Device:
dev = taurus.Device('my/device/name')
the same behavior as if it is instantiated as a PyTango.DeviceProxy. Just now in a device from PyTango.DeviceProxy it is possible to read and write attributes simply using:
dev.MyAttribute dev.MyAttribute = newvalue
If the device is instance of taurus.Device, one can read the attribute using:
dev.MyAttribute
but it is not possible to write it using:
dev.MyAttribute = newvalue
One can think that it works because one does not get any error (what is really dangerous) but one is only creating a new member of the dev object ... not affecting at all to the attribute MyAttribute of the device. This different behavior between using taurus.Device and PyTango.DeviceProxy can be really confusing for our users, since they for sure will try to use the same when they are programming python scripts, in which they use only PyTango, or sardana macros, that are using taurus.Device instances for the devices. This is why we would like to have the same implementation for both.
Regards,
Teresa
Reported by: teresanunez ( http://sf.net/u/tere29 )