From 0389c94d872504d445b2c2a6ab87480c59679739 Mon Sep 17 00:00:00 2001 From: Felix Domke Date: Tue, 3 Oct 2006 00:00:04 +0000 Subject: [PATCH] add Config-source to use config entries in web interface --- lib/python/Components/Sources/Config.py | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 lib/python/Components/Sources/Config.py 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) -- 2.30.2