git.cweiske.de
/
enigma2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
use c++-fallback for lack of tzset-python-function
[enigma2.git]
/
mytest.py
diff --git
a/mytest.py
b/mytest.py
index 593c50451bdab4b73b7c500640af60fb30eab657..ef2f6fb6388a8971ff74e3939fe015e1a7547cf8 100644
(file)
--- a/
mytest.py
+++ b/
mytest.py
@@
-13,6
+13,8
@@
from Navigation import Navigation
from skin import readSkin, applyAllAttributes
from skin import readSkin, applyAllAttributes
+from Components.config import configfile
+
had = dict()
def dump(dir, p = ""):
had = dict()
def dump(dir, p = ""):
@@
-88,7
+90,11
@@
class Session:
def create(self, screen, arguments):
# creates an instance of 'screen' (which is a class)
def create(self, screen, arguments):
# creates an instance of 'screen' (which is a class)
- return screen(self, *arguments)
+ try:
+ return screen(self, *arguments)
+ except TypeError, x:
+ errstr = "Screen %s(%s): %s" % (str(screen), str(arguments), str(x))
+ raise TypeError(errstr)
def instantiateDialog(self, screen, *arguments):
# create dialog
def instantiateDialog(self, screen, *arguments):
# create dialog
@@
-163,6
+169,8
@@
def runScreenTest():
runMainloop()
runMainloop()
+ configfile.save()
+
session.nav.shutdown()
return 0
session.nav.shutdown()
return 0