dvb/frontend: set sec once
[enigma2.git] / mytest.py
index 593c504..ef2f6fb 100644 (file)
--- a/mytest.py
+++ b/mytest.py
@@ -13,6 +13,8 @@ from Navigation import Navigation
 
 from skin import readSkin, applyAllAttributes
 
+from Components.config import configfile
+
 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)
-               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
@@ -163,6 +169,8 @@ def runScreenTest():
        
        runMainloop()
        
+       configfile.save()
+       
        session.nav.shutdown()
        
        return 0