summaryrefslogtreecommitdiffstats
path: root/module/Api.py
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2013-01-02 18:11:31 +0100
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2013-01-02 18:11:31 +0100
commit6b20f5f6c063e4e6c94d719b607ad5a028b8beee (patch)
treea8c3dfa9962aa819507870553700a35b7dcc4c74 /module/Api.py
parentRemove '/' from filename to avoid filepath exception (diff)
downloadpyload-6b20f5f6c063e4e6c94d719b607ad5a028b8beee.tar.xz
new configManager for multi user configs
Diffstat (limited to 'module/Api.py')
-rw-r--r--module/Api.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/module/Api.py b/module/Api.py
index 0b777a659..fb3c59483 100644
--- a/module/Api.py
+++ b/module/Api.py
@@ -302,7 +302,8 @@ class Api(Iface):
def getConfig(self):
"""Retrieves complete config of core.
- :return: map of `ConfigHolder`
+ :rtype : ConfigHolder
+ :return: dict with section mapped to config
"""
# TODO
return dict([(section, ConfigHolder(section, data.name, data.description, data.long_desc, [
@@ -765,6 +766,7 @@ class Api(Iface):
p = self.core.files.getPackage(pid)
if not p: raise PackageDoesNotExists(pid)
+ #TODO: fix
for key, value in data.iteritems():
if key == "id": continue
setattr(p, key, value)