From: ghost Date: Mon, 1 Nov 2010 09:22:21 +0000 (+0100) Subject: fix crash with enabled parentalcontrol in some conditions (i.e. when try to add a... X-Git-Url: http://code.vuplus.com/gitweb/?p=vuplus_dvbapp;a=commitdiff_plain;h=029a484112d0a57bd3706baa9ec0c5407d19af11 fix crash with enabled parentalcontrol in some conditions (i.e. when try to add a channel to bouquet/favourites) refs bug #607 --- diff --git a/lib/python/Components/ParentalControl.py b/lib/python/Components/ParentalControl.py index d320c9c..0ea65cd 100644 --- a/lib/python/Components/ParentalControl.py +++ b/lib/python/Components/ParentalControl.py @@ -20,8 +20,6 @@ IMG_WHITEBOUQUET = LIST_WHITELIST + "-" + TYPE_BOUQUET IMG_BLACKSERVICE = LIST_BLACKLIST + "-" + TYPE_SERVICE IMG_BLACKBOUQUET = LIST_BLACKLIST + "-" + TYPE_BOUQUET -parentalControl = None - def InitParentalControl(): global parentalControl parentalControl = ParentalControl() diff --git a/lib/python/Screens/ChannelSelection.py b/lib/python/Screens/ChannelSelection.py index 1c05bbf..c872bce 100644 --- a/lib/python/Screens/ChannelSelection.py +++ b/lib/python/Screens/ChannelSelection.py @@ -20,7 +20,6 @@ from Components.Sources.ServiceEvent import ServiceEvent profile("ChannelSelection.py 2.3") from Components.Input import Input profile("ChannelSelection.py 3") -from Components.ParentalControl import parentalControl from Components.ChoiceList import ChoiceList, ChoiceEntryComponent from Components.SystemInfo import SystemInfo from Screens.InputBox import InputBox, PinInput @@ -77,6 +76,7 @@ def append_when_current_valid(current, menu, args, level = 0, key = ""): class ChannelContextMenu(Screen): def __init__(self, session, csel): + from Components.ParentalControl import parentalControl Screen.__init__(self, session) #raise Exception("we need a better summary screen here") self.csel = csel