add lastservice-entry
authorRonny Strutz <ronny.strutz@multimedia-labs.de>
Tue, 15 Nov 2005 04:36:53 +0000 (04:36 +0000)
committerRonny Strutz <ronny.strutz@multimedia-labs.de>
Tue, 15 Nov 2005 04:36:53 +0000 (04:36 +0000)
lib/python/Components/SetupDevices.py

index 5ced845176cc9b84f4943f4a353abf8270a37666..3161f12549bc46e879f61e05ecbaf703fab6d57b 100644 (file)
@@ -4,6 +4,7 @@ from config import configElement
 from config import ConfigSubsection
 from config import ConfigSlider
 from config import configSelection
 from config import ConfigSubsection
 from config import ConfigSlider
 from config import configSelection
+from config import configText
 
 def InitSetupDevices():
        config.timezone = ConfigSubsection();
 
 def InitSetupDevices():
        config.timezone = ConfigSubsection();
@@ -32,3 +33,11 @@ def InitSetupDevices():
        config.expert.skipconfirm = configElement("config.expert.skipconfirm", configSelection, 1, ("Enable", "Disable") );
        config.expert.hideerrors = configElement("config.expert.hideerrors", configSelection, 1, ("Enable", "Disable") );
        config.expert.autoinfo = configElement("config.expert.autoinfo", configSelection, 1, ("Enable", "Disable") );
        config.expert.skipconfirm = configElement("config.expert.skipconfirm", configSelection, 1, ("Enable", "Disable") );
        config.expert.hideerrors = configElement("config.expert.hideerrors", configSelection, 1, ("Enable", "Disable") );
        config.expert.autoinfo = configElement("config.expert.autoinfo", configSelection, 1, ("Enable", "Disable") );
+
+       #here?
+       config.tv = ConfigSubsection();
+       config.tv.lastservice = configElement("config.tv.lastservice", configText, "", 0);
+       
+       config.tv.lastservice.value = "blasel"
+       config.tv.lastservice.save()
+