From 4990d273a4da51f4758afe8c0e2180947bd1f297 Mon Sep 17 00:00:00 2001 From: Martijn Voncken Date: Sun, 20 Jul 2008 07:29:55 +0000 Subject: [PATCH] combine download/import --- deluge/plugins/blocklist/blocklist/webui.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/deluge/plugins/blocklist/blocklist/webui.py b/deluge/plugins/blocklist/blocklist/webui.py index 77a72f80f..0915cb482 100644 --- a/deluge/plugins/blocklist/blocklist/webui.py +++ b/deluge/plugins/blocklist/blocklist/webui.py @@ -67,10 +67,11 @@ class BlockListCfgForm(forms.Form): del cfg["btn_download_now"] del cfg["btn_import_now"] sclient.blocklist_set_config(cfg) - if data.btn_download_now: + if data.btn_import_now: + aclient.blocklist_import(None, data.btn_download_now) + elif data.btn_download_now: aclient.blocklist_download(None) - elif data.btn_import_now: - aclient.blocklist_import(None) + #input fields : listtype = forms.ChoiceField(FORMAT_LIST)