From 44941dd9b11d9140589f7b1eacb9baf2a82d4c8b Mon Sep 17 00:00:00 2001 From: RaNaN Date: Sat, 3 Apr 2010 11:06:18 +0200 Subject: webif settings page --- pyLoadCore.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'pyLoadCore.py') diff --git a/pyLoadCore.py b/pyLoadCore.py index 5014ed264..ef042e4ec 100755 --- a/pyLoadCore.py +++ b/pyLoadCore.py @@ -527,7 +527,13 @@ class ServerMethods(): return self.core.config[cat][var] else: raise Exception("not allowed!") - + + def set_conf_val(self, cat, opt, val): + if opt not in ("username", "password"): + self.core.xmlconfig.set(cat, opt, val) + else: + raise Exception("not allowed!") + def get_config(self): d = deepcopy(self.core.xmlconfig.getConfigDict()) del d["remote"]["username"] -- cgit v1.2.3