Open sf-migrator-bot opened 11 years ago
Fri Mar 30 13:09:49 2012 cpascual:
There is a bug in Macrogui when the config file does not provide a MACROSERVER_NAME / DOOR_NAME
To reproduce:
Launch taurusgui macrogui (which does not set a macroserver)
Go to : Taurus-->MacroExecutor Configuration and choose an MS and a Door
Now try to recover a previously created favourite macro (or macro in history).
The parameters editor will become disabled and the following exception will be thrown many times:
Traceback (most recent call last): File "/homelocal/sicilia/lib/python/site-packages/taurus/qt/qtgui/extra_macroexecutor/macroparameterseditor/model.py", line 59, in flags not node.type() in globals.EDITOR_NONEDITABLE_PARAMS): File "/homelocal/sicilia/lib/python/site-packages/taurus/core/tango/sardana/macro.py", line 490, in type return self._type AttributeError: 'SingleParamNode' object has no attribute '_type'
Original comment by: reszelaz (http://sf.net/u/zreszela)
Thu May 24 14:37:43 2012 cpascual:
This is a known problem which I am puting as a ticket as a reminder:
The Qt model of the macro executor trhows exceptions in some situations when accessing a "favourite" macro. The parameters editor widget is then rendered unusable (parameters are grayed) and if you are in a TaurusGui, a cascade of exception renders the gui unusable unless you choose to ignore all exceptions.
Traceback (most recent call last): File "/home/cpascual/src/svn/taurus/lib/taurus/qt/qtgui/extra_macroexecutor/macroparameterseditor/delegate.py", line 102, in sizeHint editor = self.createEditor(self.parent(), option, index) File "/home/cpascual/src/svn/taurus/lib/taurus/qt/qtgui/extra_macroexecutor/macroparameterseditor/delegate.py", line 46, in createEditor paramType = node.type() File "/home/cpascual/src/svn/taurus/lib/taurus/core/tango/sardana/macro.py", line 490, in type return self._type AttributeError: 'SingleParamNode' object has no attribute '_type'
Original comment by: reszelaz (http://sf.net/u/zreszela)
Original comment by: reszelaz (http://sf.net/u/zreszela)
Original comment by: reszelaz (http://sf.net/u/zreszela)
Original comment by: cpascual (http://sf.net/u/cpascual)
Original comment by: cpascual (http://sf.net/u/cpascual)
Original comment by: cpascual (http://sf.net/u/cpascual)
Original comment by: cpascual (http://sf.net/u/cpascual)
Original comment by: reszelaz (http://sf.net/u/zreszela)
Some aditional information in this Tango CS ticket.
Original comment by: reszelaz (http://sf.net/u/zreszela)
See one idea on how to implement this in https://github.com/sardana-org/sardana/pull/1270#pullrequestreview-419454244.
This is a former ticket at Alba: #23418
Affects the following features: +) list of the favourites +) macro execution history +) restore of the sequences from xml file
It affects macroexecutor & sequencer & macrogui: +) when starting gui and MS and Door are not running +) when macro does not exist in the MS anymore (see #35 for more details) +) when model (MacroServer) is set after startup (using the configuration dialog)
Workaround: +) macroexecutor & sequencer store models in ini files +) macrogui needs to have model set in configuration file
Reported by: reszelaz ( http://sf.net/u/zreszela )
Original Ticket: sardana/tickets/17