Menu

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

closed
nobody
None
Jive
5
2016-02-25
2016-02-22
No

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]

Related

Bugs: #777

Discussion

  • Emmanuel Taurel

    Emmanuel Taurel - 2016-02-23

    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

     
    • Martin Mohan

      Martin Mohan - 2016-02-23

      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/

       

      Related

      Bugs: #777

      • Martin Mohan

        Martin Mohan - 2016-02-25

        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.

         
  • Emmanuel Taurel

    Emmanuel Taurel - 2016-02-25
    • status: open --> closed
     

Log in to post a comment.

MongoDB Logo MongoDB