diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2013-01-03 17:14:02 +0100 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2013-01-03 17:14:02 +0100 |
commit | a6b5a69612f4dd744be20c326152a9d892150f98 (patch) | |
tree | f3a221e2c8e1b805b5b83c0136978b9fb36eae59 /module/config | |
parent | little cleanup, improved handling of custom exceptions via api (diff) | |
download | pyload-a6b5a69612f4dd744be20c326152a9d892150f98.tar.xz |
seperate api into several components
Diffstat (limited to 'module/config')
-rw-r--r-- | module/config/ConfigManager.py | 6 |
1 files changed, 3 insertions, 3 deletions
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] |