add get_config_values method to core to allow for multiple config values to be retrieved

This commit is contained in:
Damien Churchill 2008-12-03 22:46:56 +00:00
parent 7b243759f3
commit 92574feeb4

View File

@ -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"""