PDA

View Full Version : [ViX_Misc] If parental control is set, Edit menu (blue button) causes crash



Orlandox
25-11-21, 11:53
Hello, just to let the devs know that if you have set parental control (pin code), then select GUI Settings/Sort menu screen to user defined. Then try to edit menu with blue button causes crash.

< 23108.4953> 12:41:21.1096 [ActionMap] Keymap 'ColorActions' -> Action = 'blue'.
< 23108.4983> 12:41:21.1127 Traceback (most recent call last):
< 23108.4984> 12:41:21.1127 File "/usr/lib/enigma2/python/Components/ActionMap.py", line 80, in action
< 23108.4989> 12:41:21.1132 return ActionMap.action(self, contexts, action)
< 23108.4990> 12:41:21.1133 File "/usr/lib/enigma2/python/Components/ActionMap.py", line 60, in action
< 23108.4993> 12:41:21.1136 res = self.actions[action]()
< 23108.4993> 12:41:21.1136 File "/usr/lib/enigma2/python/Screens/Menu.py", line 391, in keyBlue
< 23108.5000> 12:41:21.1143 self.session.openWithCallback(self.menuSortCallBac k, MenuSort, self.parentmenu)
< 23108.5000> 12:41:21.1144 File "/usr/lib/enigma2/python/StartEnigma.py", line 332, in openWithCallback
< 23108.5007> 12:41:21.1150 dlg = self.open(screen, *arguments, **kwargs)
< 23108.5007> 12:41:21.1150 File "/usr/lib/enigma2/python/StartEnigma.py", line 342, in open
< 23108.5013> 12:41:21.1156 dlg = self.current_dialog = self.instantiateDialog(screen, *arguments, **kwargs)
< 23108.5013> 12:41:21.1156 File "/usr/lib/enigma2/python/StartEnigma.py", line 279, in instantiateDialog
< 23108.5018> 12:41:21.1161 return self.doInstantiateDialog(screen, arguments, kwargs, self.desktop)
< 23108.5018> 12:41:21.1162 File "/usr/lib/enigma2/python/StartEnigma.py", line 302, in doInstantiateDialog
< 23108.5024> 12:41:21.1167 dlg = screen(self, *arguments, **kwargs)
< 23108.5024> 12:41:21.1167 File "/usr/lib/enigma2/python/Screens/Menu.py", line 416, in __init__
< 23108.5031> 12:41:21.1174 Menu.__init__(self, session, parentmenu)
< 23108.5032> 12:41:21.1175 File "/usr/lib/enigma2/python/Screens/Menu.py", line 230, in __init__
< 23108.5036> 12:41:21.1179 ProtectedScreen.__init__(self)
< 23108.5036> 12:41:21.1179 File "/usr/lib/enigma2/python/Screens/ParentalControlSetup.py", line 17, in __init__
< 23108.5038> 12:41:21.1182 if self.isProtected() and config.ParentalControl.servicepin[0].value:
< 23108.5039> 12:41:21.1182 File "/usr/lib/enigma2/python/Screens/Menu.py", line 443, in isProtected
< 23108.5045> 12:41:21.1188 return config.ParentalControl.setuppinactive.value and config.ParentalControl.config_sections.menu_sort.v alue
< 23108.5046> 12:41:21.1189 File "/usr/lib/enigma2/python/Components/config.py", line 2103, in __getattr__
< 23108.5068> 12:41:21.1211 raise AttributeError(name)
< 23108.5069> 12:41:21.1212 AttributeError: menu_sort
< 23108.5070> 12:41:21.1213 [ePyObject] (CallObject(<bound method NumberActionMap.action of <Components.ActionMap.HelpableNumberActionMap object at 0xadacf328>>,('ColorActions', 'blue')) failed)

Huevos
26-11-21, 10:06
Please try this:
https://github.com/OpenViX/enigma2/commit/d994ce5f477a7502890edfa271e395d9d8e5561f

Orlandox
26-11-21, 11:49
Please try this:
https://github.com/OpenViX/enigma2/commit/d994ce5f477a7502890edfa271e395d9d8e5561f

Tried and confirmed working. Great job !