aboutsummaryrefslogtreecommitdiffstats
path: root/wee_slack.py
diff options
context:
space:
mode:
authorRyan Huber <rhuber@gmail.com>2017-01-26 09:43:26 -0800
committerRyan Huber <rhuber@gmail.com>2017-01-26 09:43:26 -0800
commit3b4c88bf604e719ded8d8e71f149d152e52fb2d5 (patch)
tree719fbf62f3c31360369d2f6f0f921a023e82e14c /wee_slack.py
parenta43d7431b20469fe1a6d8d0a990e6c75f4223398 (diff)
downloadwee-slack-3b4c88bf604e719ded8d8e71f149d152e52fb2d5.tar.gz
add str function for debugging
Diffstat (limited to 'wee_slack.py')
-rw-r--r--wee_slack.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/wee_slack.py b/wee_slack.py
index 42d2e54..2719d14 100644
--- a/wee_slack.py
+++ b/wee_slack.py
@@ -2450,6 +2450,9 @@ class PluginConfig(object):
w.config_set_plugin(key, default)
self.config_changed(None, None, None)
+ def __str__(self):
+ return "".join([x + "\t" + str(self.settings[x]) + "\n" for x in self.settings.keys()])
+
def config_changed(self, data, key, value):
for key in self.settings:
self.settings[key] = self.fetch_setting(key)