sardana-org / sardana

Moved to GitLab: https://gitlab.com/sardana-org/sardana
39 stars 52 forks source link

macroexecutor chokes when using spaces in string parameters (SF#421) #266

Open sf-migrator-bot opened 8 years ago

sf-migrator-bot commented 8 years ago

This was an internal Alba's ticket reported by Konstantin Klementiev (RT#25837).

The parameters editor of a macroexecutor is reset if the user tries to set a string parameter with a string containing spaces.

Reported by: reszelaz ( http://sf.net/u/zreszela )

Original Ticket: sardana/tickets/421

sf-migrator-bot commented 8 years ago

Updated by Carlos Pascual on Fri Jul 06 14:46:24 2012:

gcuni and I investigated the issue and found that: the problem is caused by the SpockCommandWidget, which, when its text gets updated, it parses it by splitting on whitespace. This results in an attempt to set more parameters than those accepted by the macro.

Workaround: set

self.disableSpockCommandUpdate = True

in SpockCommandWidget.init in the macroexecutor.py file. (this disables the edition capabilities of the "yellow line'

But the real fix should involve using quotes for string parameters in the SpockCommandWidget.

We also found that the sequencer widget seems not to be affected at all.

Original comment by: reszelaz (http://sf.net/u/zreszela)