From 966b2fa4590f473ee5cdf23121d13e80a9ac205d Mon Sep 17 00:00:00 2001 From: Martijn Voncken Date: Wed, 16 Jan 2008 00:00:21 +0000 Subject: [PATCH] config plugins:raise todo --- deluge/ui/webui/webui_plugin/config_tabs_deluge.py | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/deluge/ui/webui/webui_plugin/config_tabs_deluge.py b/deluge/ui/webui/webui_plugin/config_tabs_deluge.py index 159a72fbb..469dfe663 100644 --- a/deluge/ui/webui/webui_plugin/config_tabs_deluge.py +++ b/deluge/ui/webui/webui_plugin/config_tabs_deluge.py @@ -123,10 +123,17 @@ class Daemon(config.CfgForm): config.register_block('deluge','daemon', Daemon) -class Plugins(config.CfgForm): +class Plugins(config.Form): title = _("Enabled Plugins") - _choices = [(p,p) for p in ws.proxy.get_available_plugins()] enabled_plugins = config.MultipleChoice(_(""), _choices) + def initial_data(self): + return {'enabled_plugins':ws.proxy.get_enabled_plugins()} + + def save(self, value): + raise NotImplementedError("TODO") + + + config.register_block('deluge','plugins', Plugins)