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