combine download/import

This commit is contained in:
Martijn Voncken 2008-07-20 07:29:55 +00:00
parent 4368554937
commit 4990d273a4
1 changed files with 4 additions and 3 deletions

View File

@ -67,10 +67,11 @@ class BlockListCfgForm(forms.Form):
del cfg["btn_download_now"] del cfg["btn_download_now"]
del cfg["btn_import_now"] del cfg["btn_import_now"]
sclient.blocklist_set_config(cfg) 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) aclient.blocklist_download(None)
elif data.btn_import_now:
aclient.blocklist_import(None)
#input fields : #input fields :
listtype = forms.ChoiceField(FORMAT_LIST) listtype = forms.ChoiceField(FORMAT_LIST)