PDA

View Full Version : [MB Premium Twin HD] Crash setting timer from EPG Info box - and fix for it



birdman
12-12-15, 13:00
If I go into the (graphical) EPG, select and event and press Info I get a pop-up box of information.
This includes an option to set a timer (green button).
Pressing that goes to the new timer screen, but saving that results in a crash:
Traceback (most recent call last):
File "/usr/lib/enigma2/python/mytest.py", line 219, in processDelay
callback(*retval)
File "/usr/lib/enigma2/python/Screens/EventView.py", line 155, in finishedAdd
NameError: global name 'config' is not defined


Someone forgot to import config into the file.

The (tested) fix is just to add:


from Components.config import config

near the top of the Screens/EventView.py.

abu baniaz
12-12-15, 13:12
Just tried this, could not reproduce it. Tred it both on Sat and Terrestrial. Maybe I am checking the wrong screen. Can you post a screenhot of the Graphical EPG screen please?

birdman
12-12-15, 15:23
Just tried this, could not reproduce it. Tred it both on Sat and Terrestrial. Maybe I am checking the wrong screen. Can you post a screenhot of the Graphical EPG screen please?I'm not setting from the Graphical EPG - I'm setting from the Info box which pops-up from the EPG.

Go to the Graphical EPG and select a programme:

46137

then press the Info button on your remote to get the Info box

46138

which has an option to set a timer by pressing Green.

Press Green, get to the New Timer menu, then save the new timer. It will crash.

Alternatively just look at the code in Screens. Every other source file using config imports it, but EventView.py does not, even those it uses it (twice - on the same line).

abu baniaz
12-12-15, 15:43
Thanks for reporting. Will be fixed.

EDIT:
https://github.com/OpenViX/enigma2/commit/f96ecf33faa7eb600bfce967444eeb4261dd339e