+ from Components.ParentalControl import parentalControl
+ parentalControl.setSessionPinCached()
+ self.gotFilename(res, selItem, False)
if not res:
return
# serviceref must end with /
if not res:
return
# serviceref must end with /
@@ -1353,7+1358,7 @@ class MovieSelection(Screen, HelpableScreen, SelectionEventInfo, InfoBarBase, Pr
if os.path.isdir(res):
baseName = os.path.basename(res[:-1])
if doParentalControl and config.ParentalControl.servicepin[0].value and baseName.startswith(".") and not baseName.startswith(".Trash"):
if os.path.isdir(res):
baseName = os.path.basename(res[:-1])
if doParentalControl and config.ParentalControl.servicepin[0].value and baseName.startswith(".") and not baseName.startswith(".Trash"):
- self.session.openWithCallback(boundFunction(self.pinEntered, res, selItem), PinInput, pinList=[x.value for x in config.ParentalControl.servicepin], triesEntry=config.ParentalControl.retries.servicepin, title=_("Please enter the correct pin code"), windowTitle=_("Enter pin code"))
+ self.session.openWithCallback(boundFunction(pinEntered, res, selItem), PinInput, pinList=[x.value for x in config.ParentalControl.servicepin], triesEntry=config.ParentalControl.retries.servicepin, title=_("Please enter the correct pin code"), windowTitle=_("Enter pin code"))
else:
config.movielist.last_videodir.value = res
config.movielist.last_videodir.save()
else:
config.movielist.last_videodir.value = res
config.movielist.last_videodir.save()
@@ -1372,12+1377,6 @@ class MovieSelection(Screen, HelpableScreen, SelectionEventInfo, InfoBarBase, Pr
timeout = 5
)
timeout = 5
)
- def pinEntered(self, res, selItem, result):
- if result:
- from Components.ParentalControl import parentalControl