From 75663de03c9f5e1b4caf3779b2778b8fa55b891b Mon Sep 17 00:00:00 2001 From: Martijn Voncken Date: Tue, 12 Feb 2008 19:56:11 +0000 Subject: [PATCH] polish --- deluge/ui/webui/webui_plugin/config.py | 1 + deluge/ui/webui/webui_plugin/torrent_add.py | 8 ++++---- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/deluge/ui/webui/webui_plugin/config.py b/deluge/ui/webui/webui_plugin/config.py index 2384212fc..8b8ea05c8 100644 --- a/deluge/ui/webui/webui_plugin/config.py +++ b/deluge/ui/webui/webui_plugin/config.py @@ -91,6 +91,7 @@ class config_page: @deco.deluge_page def POST(self,name): + form_class = self.get_form_class(name) form_data = web.Storage(utils.get_newforms_data(form_class)) form = form_class(form_data) if form.is_valid(): diff --git a/deluge/ui/webui/webui_plugin/torrent_add.py b/deluge/ui/webui/webui_plugin/torrent_add.py index ad5bf0806..6a996ca39 100644 --- a/deluge/ui/webui/webui_plugin/torrent_add.py +++ b/deluge/ui/webui/webui_plugin/torrent_add.py @@ -62,9 +62,10 @@ class AddForm(forms.Form): widget=forms.TextInput(attrs={'size':60})) torrent = forms.CharField(label=_("Upload torrent"), required=False, widget=forms.FileInput(attrs={'size':60})) - hash = forms.CharField(label=_("Hash"), required=False, - widget=forms.TextInput(attrs={'size':60})) - ret = forms.CheckBox(_('Add more')) + + #hash = forms.CharField(label=_("Hash"), required=False, + # widget=forms.TextInput(attrs={'size':60})) + #ret = forms.CheckBox(_('Add more')) class torrent_add: @@ -93,7 +94,6 @@ class torrent_add: if not options_form.is_valid(): print self.add_page(error = _("Error in torrent options.")) return - options = options_form.clean_data