aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Components/Sources/Config.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/python/Components/Sources/Config.py')
-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)