From 14ecf91716fd403922b44567d75d4cbe3abea617 Mon Sep 17 00:00:00 2001 From: RaNaN Date: Wed, 20 Feb 2013 23:11:33 +0100 Subject: parse category from addons --- module/api/ConfigApi.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'module/api/ConfigApi.py') diff --git a/module/api/ConfigApi.py b/module/api/ConfigApi.py index fcc0bdd14..55e0aa49b 100644 --- a/module/api/ConfigApi.py +++ b/module/api/ConfigApi.py @@ -68,7 +68,7 @@ class ConfigApi(ApiComponent): for name, config, values in self.core.config.iterSections(self.user): if not values: continue item = ConfigInfo(name, config.name, config.description, - self.core.pluginManager.isPluginType(name, "addons"), + self.core.pluginManager.getCategory(name), self.core.pluginManager.isUserPlugin(name), values.get("activated", False)) data.append(item) @@ -84,7 +84,7 @@ class ConfigApi(ApiComponent): """ # TODO: filter user_context / addons when not allowed return [ConfigInfo(name, config.name, config.description, - self.core.pluginManager.isPluginType(name, "addons"), + self.core.pluginManager.getCategory(name), self.core.pluginManager.isUserPlugin(name)) for name, config, values in self.core.config.iterSections(self.user)] -- cgit v1.2.3