diff options
author | Jonny Lamb <jonny.lamb@collabora.co.uk> | 2010-01-20 19:23:57 +0000 |
---|---|---|
committer | Jonny Lamb <jonny.lamb@collabora.co.uk> | 2010-01-20 19:23:57 +0000 |
commit | d7b244991255eacaee57fca210fe23616325ddd2 (patch) | |
tree | f6e6cd3388aefb12859db52edb351b7de9775dc6 | |
parent | 47db8570ff5eca43b3699fe826c86a2ea5067e64 (diff) |
debug: implement setting the Enabled property
At long last.
Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
-rw-r--r-- | src/server/debug.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/server/debug.py b/src/server/debug.py index 98ccc4c..3a1b4f6 100644 --- a/src/server/debug.py +++ b/src/server/debug.py @@ -55,9 +55,13 @@ class Debug(_Debug, DBusProperties, logging.Handler): logging.Handler.__init__(self) self._implement_property_get(DEBUG, {'Enabled': lambda: self.enabled}) + self._implement_property_set(DEBUG, {'Enabled': self._set_enabled}) logging.getLogger(root).addHandler(self) sys.stderr = StdErrWrapper(self, sys.stderr) + def _set_enabled(self, value): + self.enabled = value + def GetMessages(self): return self._messages |