tango-controls / pytango

This project was moved to gitlab.com
http://pytango.rtfd.io
54 stars 44 forks source link

Are DynamicCommands not suported in python / pythonHL? (Pogo says so) #396

Closed sergirubio closed 3 years ago

sergirubio commented 3 years ago

Hi,

I am not sure whether it is a PyTango or a Pogo issue.

When generating a Python device server with Dynamic Commands in Pogo, this message appears:

  "Dynamic Commands are not supported in python" 

If PythonHL is selected instead then no warning appears, but commands are not added to the generated source.

Sergi

ajoubertza commented 3 years ago

Hi @sergirubio

They are supported. See a PyTango example here for high level API. In that example, I notice the from tango.server import DispLevel must be changed to from tango import DispLevel.

Another place we used it is in tango-simlib.

I'm not sure if it can be used with the classic API.

sergirubio commented 3 years ago

Hi Anton,

So, it seems that is not a PyTango bug but a Pogo bug instead; it should generate dynamic commands templates for PythonHL

You can close the ticket and I'll open a new one in Pogo queue,

Sergi

sergirubio commented 3 years ago

Just for tracking: I added the issue in Pogo queue

https://github.com/tango-controls/pogo/issues/103