X-Git-Url: http://code.vuplus.com/gitweb/?a=blobdiff_plain;f=mytest.py;h=15f3b7dbfb487bfb5a2a6667fe88e17ba0232564;hb=610f64bae892bbe30966d85ba069d4f9f0cdf60f;hp=26edd6b9747633f3be84090e66fff7bc5973e476;hpb=5f33698a4493178368088529911aa48201e8bca2;p=vuplus_dvbapp diff --git a/mytest.py b/mytest.py index 26edd6b..15f3b7d 100644 --- a/mytest.py +++ b/mytest.py @@ -19,6 +19,9 @@ import time import ServiceReference +from Components.ParentalControl import InitParentalControl +InitParentalControl() + from Navigation import Navigation from skin import readSkin, applyAllAttributes @@ -34,6 +37,9 @@ try: import e2reactor e2reactor.install() + import twisted.python.runtime + twisted.python.runtime.platform.supportsThreads = lambda: False + from twisted.internet import reactor def runReactor(): @@ -499,6 +505,9 @@ try: runScreenTest() plugins.shutdown() + + from Components.ParentalControl import parentalControl + parentalControl.save() except: print 'EXCEPTION IN PYTHON STARTUP CODE:' print '-'*60