git.cweiske.de
/
enigma2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix python part of ePythonConfig::getConfigQuery... so now default ac3 and 5V
[enigma2.git]
/
mytest.py
diff --git
a/mytest.py
b/mytest.py
index 26edd6b9747633f3be84090e66fff7bc5973e476..15f3b7dbfb487bfb5a2a6667fe88e17ba0232564 100644
(file)
--- a/
mytest.py
+++ b/
mytest.py
@@
-19,6
+19,9
@@
import time
import ServiceReference
import ServiceReference
+from Components.ParentalControl import InitParentalControl
+InitParentalControl()
+
from Navigation import Navigation
from skin import readSkin, applyAllAttributes
from Navigation import Navigation
from skin import readSkin, applyAllAttributes
@@
-34,6
+37,9
@@
try:
import e2reactor
e2reactor.install()
import e2reactor
e2reactor.install()
+ import twisted.python.runtime
+ twisted.python.runtime.platform.supportsThreads = lambda: False
+
from twisted.internet import reactor
def runReactor():
from twisted.internet import reactor
def runReactor():
@@
-499,6
+505,9
@@
try:
runScreenTest()
plugins.shutdown()
runScreenTest()
plugins.shutdown()
+
+ from Components.ParentalControl import parentalControl
+ parentalControl.save()
except:
print 'EXCEPTION IN PYTHON STARTUP CODE:'
print '-'*60
except:
print 'EXCEPTION IN PYTHON STARTUP CODE:'
print '-'*60