tango-controls / jive

Jive is a standalone JAVA application designed to browse and edit the static TANGO database. jive moved to https://gitlab.com/tango-controls/jive
10 stars 6 forks source link

Properties registered using default values cannot be viewed by other clients #46

Closed tango-controls-bot closed 7 years ago

tango-controls-bot commented 8 years ago

If I register a program using default jive property it is not viewable from several programs. (excluding astor). E.g. I register 2 instances of device simulator using jive 4.3.1. Simulator has one property called DeviceNr (default value=1) test/simulator/default 1 (default) test/simulator/rampx2 2 (modified)

python

import PyTango db=PyTango.Database()

deviceName="test/simulator/default" print ("%s"%db.get_device_property_list(deviceName,"*").value_string) []

deviceName="test/simulator/rampx2" print ("%s"%db.get_device_property_list(deviceName,"*").value_string) ['DeviceNr']

or jive -> tab->device test->simulator->default->properties [] test->simulator->rampx2->properties [DeviceNr][2]

Reported by: martinmohan89 ( http://sf.net/u/martinmohan89 )

Original Ticket: tango-cs/bugs/777

tango-controls-bot commented 8 years ago

Hi Martin

Within Tango, the definition of default property is a property with its value hard coded in the Tango class and therefore not stored in the database. The reason of this feature is to ease Tango device server installation. Imagine you have the same Tango class with several tens of devices. It could be tedious and error-prone to enter in database the property value for all these devices. Using a property default value, you don't have anything to do (except case where for some devices you need the property to have a vlue different than the default) Nevertheless, because the default value is not stored in the database, it is not easy for other software than the Tango class to get this default value. When the device server is running and using the admin device command, it is possible to get this default value and this is what the device wizard is doing.

To summarize, I do not really consider this as a bug but rather as a feature request to make property default value (when defined) more easily accesible than what it is nowadays. You are welcome to create a feature request for this.

Regards

Emmanuel

Original comment by: taurel (http://sourceforge.net/u/taurel)

tango-controls-bot commented 8 years ago

Hi Emmanuel, Ok I would like to put this as a feature request but for feature request "Create Ticket" is greyed out in sourceforge. Hovering over "Create Ticket" shows "To create a new ticket, you must be authorized by project admin".

On 23/02/16 08:09, Emmanuel Taurel wrote:

Hi Martin

Within Tango, the definition of default property is a property with its value hard coded in the Tango class and therefore not stored in the database. The reason of this feature is to ease Tango device server installation. Imagine you have the same Tango class with several tens of devices. It could be tedious and error-prone to enter in database the property value for all these devices. Using a property default value, you don't have anything to do (except case where for some devices you need the property to have a vlue different than the default) Nevertheless, because the default value is not stored in the database, it is not easy for other software than the Tango class to get this default value. When the device server is running and using the admin device command, it is possible to get this default value and this is what the device wizard is doing.

To summarize, I do not really consider this as a bug but rather as a feature request to make property default value (when defined) more easily accesible than what it is nowadays. You are welcome to create a feature request for this.

Regards

Emmanuel


[bugs:#777] http://sourceforge.net/p/tango-cs/bugs/777/ Properties registered using default values cannot be viewed by other clients

Status: open Created: Mon Feb 22, 2016 01:29 PM UTC by Martin Mohan Last Updated: Mon Feb 22, 2016 01:29 PM UTC Owner: nobody

If I register a program using default jive property it is not viewable from several programs. (excluding astor). E.g. I register 2 instances of device simulator using jive 4.3.1. Simulator has one property called DeviceNr (default value=1) test/simulator/default 1 (default) test/simulator/rampx2 2 (modified)

python

        import PyTango
        db=PyTango.Database()

        deviceName="test/simulator/default"
        print
        ("%s"%db.get_device_property_list(deviceName,"*").value_string)
        []

        deviceName="test/simulator/rampx2"
        print
        ("%s"%db.get_device_property_list(deviceName,"*").value_string)
        ['DeviceNr']

or jive -> tab->device test->simulator->default->properties [] test->simulator->rampx2->properties [DeviceNr][2]


Sent from sourceforge.net because you indicated interest in https://sourceforge.net/p/tango-cs/bugs/777/

To unsubscribe from further messages, please visit https://sourceforge.net/auth/subscriptions/

Original comment by: martinmohan89 (http://sourceforge.net/u/martinmohan89)

tango-controls-bot commented 8 years ago

I managed to create a feature request #121 Make a property default value (when defined) more easily accessible. Could you close this bug report. Thanks.

Original comment by: martinmohan89 (http://sourceforge.net/u/martinmohan89)

tango-controls-bot commented 8 years ago

Original comment by: taurel (http://sourceforge.net/u/taurel)