now, settings are visible.
[enigma2-plugins.git] / webinterface / src / WebComponents / Sources / Settings.py
1 from enigma import *
2
3 from Components.config import config
4
5 import os
6 import struct
7 from struct import *
8
9 from Components.Sources.Source import Source
10
11 class Settings( Source):
12         
13     def __init__(self,session):
14         self.cmd = []
15         self.session = session
16         Source.__init__(self)
17
18     def handleCommand(self, cmd):
19         self.cmd = cmd
20         
21     def do_func(self):
22         list = []
23         
24         print "Settings wurde aufgerufen ",self.cmd
25         #list.append([config.plugins.Webinterface.enable.value, 'config.plugins.Webinterface.enable'])
26         #list.append([config.plugins.Webinterface.password.value, 'config.plugins.Webinterface.password'])
27         #list.append([config.plugins.Webinterface.includehdd.value, 'config.plugins.Webinterface.includehdd'])
28         list.append([config.recording.margin_before.value, 'config.recording.margin_before'])
29         list.append([config.recording.margin_after.value, 'config.recording.margin_after'])
30         
31         print "Settings was was sent (%s)" % type
32         print list
33         return list
34
35
36     list = property(do_func)
37     lut = {"Value": 0
38            ,"Name": 1           
39            }