integraded parental conrtol. still stuff to do in webif.py. ugly switching of config....
[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         list.append([config.recording.margin_before.value, 'config.recording.margin_before'])
25         list.append([config.recording.margin_after.value, 'config.recording.margin_after'])
26         
27         list.append([config.ParentalControl.servicepinactive.value, 'config.ParentalControl.servicepinactive'])
28         list.append([config.ParentalControl.setuppin.value, 'config.ParentalControl.setuppin'])
29         list.append([config.ParentalControl.servicepin[0].value, 'config.ParentalControl.servicepin.0'])
30         list.append([config.ParentalControl.configured.value, 'config.ParentalControl.configured'])
31         list.append([config.ParentalControl.setuppinactive.value, 'config.ParentalControl.setuppinactive'])
32         list.append([config.ParentalControl.type.value, 'config.ParentalControl.type'])
33
34         print "Settings was was sent (%s)" % type
35         return list
36
37
38     list = property(do_func)
39     lut = {"Value": 0
40            ,"Name": 1           
41            }