aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Components/Sources
diff options
context:
space:
mode:
authorFelix Domke <tmbinc@elitedvb.net>2006-10-03 00:00:04 +0000
committerFelix Domke <tmbinc@elitedvb.net>2006-10-03 00:00:04 +0000
commit0389c94d872504d445b2c2a6ab87480c59679739 (patch)
treea21ae4a3193d4bc104e56e896a9cf035a57baeb5 /lib/python/Components/Sources
parent19e535d1d17e94e001d47f718c0304386b6309c8 (diff)
downloadenigma2-0389c94d872504d445b2c2a6ab87480c59679739.tar.gz
enigma2-0389c94d872504d445b2c2a6ab87480c59679739.zip
add Config-source to use config entries in web interface
Diffstat (limited to 'lib/python/Components/Sources')
-rw-r--r--lib/python/Components/Sources/Config.py19
1 files changed, 19 insertions, 0 deletions
diff --git a/lib/python/Components/Sources/Config.py b/lib/python/Components/Sources/Config.py
new file mode 100644
index 00000000..b8939093
--- /dev/null
+++ b/lib/python/Components/Sources/Config.py
@@ -0,0 +1,19 @@
+from Source import Source
+
+class Config(Source):
+ def __init__(self, config):
+ Source.__init__(self)
+ self.__config = config
+
+ def getConfig(self):
+ return self.__config
+
+ config = property(getConfig)
+
+ def getHTML(self, id):
+ print "getHTML", self, id
+ return self.__config.getHTML(id)
+
+ def handleCommand(self, cmd):
+ print "ASSIGN:", cmd
+ self.__config.unsafeAssign(cmd)