From 92574feeb482932ce12587a83758808571636a8f Mon Sep 17 00:00:00 2001 From: Damien Churchill Date: Wed, 3 Dec 2008 22:46:56 +0000 Subject: [PATCH] add get_config_values method to core to allow for multiple config values to be retrieved --- deluge/core/core.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/deluge/core/core.py b/deluge/core/core.py index 5244cc865..b319a16dd 100644 --- a/deluge/core/core.py +++ b/deluge/core/core.py @@ -530,6 +530,17 @@ class Core( return None return value + + def export_get_config_values(self, keys): + """Get the config values for the entered keys""" + config = {} + for key in keys: + try: + config[key] = self.config[key] + except KeyError: + pass + return config + def export_set_config(self, config): """Set the config with values from dictionary"""