From a6b5a69612f4dd744be20c326152a9d892150f98 Mon Sep 17 00:00:00 2001 From: RaNaN Date: Thu, 3 Jan 2013 17:14:02 +0100 Subject: seperate api into several components --- module/config/ConfigManager.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'module/config') diff --git a/module/config/ConfigManager.py b/module/config/ConfigManager.py index 872ce2e00..4898b0c66 100644 --- a/module/config/ConfigManager.py +++ b/module/config/ConfigManager.py @@ -57,7 +57,7 @@ class ConfigManager(ConfigParser): else: # We need the id and not the instance # Will be None for admin user and so the same as internal access - user = user.handle if user else None + user = user.primary if user else None try: # Check if this config exists # Configs without meta data can not be loaded! @@ -87,7 +87,7 @@ class ConfigManager(ConfigParser): changed = self.parser.set(section, option, value, sync) else: # associated id - user = user.handle if user else None + user = user.primary if user else None data = self.config[section].config[option] value = from_string(value, data.type) old_value = self.get(section, option) @@ -107,7 +107,7 @@ class ConfigManager(ConfigParser): def delete(self, section, user=False): """ Deletes values saved in db and cached values for given user, NOT meta data Does not trigger an error when nothing was deleted. """ - user = user.handle if user else None + user = user.primary if user else None if (user, section) in self.values: del self.values[user, section] -- cgit v1.2.3