Changeset b0a9bf


Ignore:
Timestamp:
02/12/2008 04:53:48 PM (17 years ago)
Author:
Martijn Voncken <mvoncken@gmail.com>
Branches:
2.0.x, develop, extjs4-port, master
Children:
0b3067
Parents:
9beda7
Message:

fix broken svn state on torrent_add

File:
1 edited

Legend:

Unmodified
Added
Removed
  • deluge/ui/webui/webui_plugin/torrent_add.py

    r9beda7 rb0a9bf  
    2929#  this exception statement from your version. If you delete this exception
    3030#  statement from all source files in the program, then also delete it here.
    31 
     31#
    3232from webserver_common import ws
    3333from utils import *
     
    3535import page_decorators as deco
    3636import lib.newforms_plus as forms
     37import base64
    3738
    38 """
    39         self.glade.get_widget("button_location").set_current_folder(
    40             options["download_location"])
    41         self.glade.get_widget("radio_compact").set_active(
    42             options["compact_allocation"])
    43         self.glade.get_widget("spin_maxdown").set_value(
    44             options["max_download_speed_per_torrent"])
    45         self.glade.get_widget("spin_maxup").set_value(
    46             options["max_upload_speed_per_torrent"])
    47         self.glade.get_widget("spin_maxconnections").set_value(
    48             options["max_connections_per_torrent"])
    49         self.glade.get_widget("spin_maxupslots").set_value(
    50             options["max_upload_slots_per_torrent"])
    51         self.glade.get_widget("chk_paused").set_active(
    52             options["add_paused"])
    53         self.glade.get_widget("chk_prioritize").set_active(
    54             options["prioritize_first_last_pieces"])
    55         self.glade.get_widget("chk_private").set_active(
    56             options["default_private"])
    57 """
    58 class AddForm(forms.Form):
     39class OptionsForm(forms.Form):
    5940    download_location =  forms.ServerFolder(_("Download Location"))
    6041    compact_allocation = forms.CheckBox(_("Compact Allocation"))
     
    7657        return ws.proxy.get_config()
    7758
     59class AddForm(forms.Form):
     60    url = forms.CharField(label=_("Url"),
     61        widget=forms.TextInput(attrs={'size':60}))
     62    torrent = forms.CharField(label=_("Upload torrent"),
     63        widget=forms.FileInput(attrs={'size':60}))
     64    hash = forms.CharField(label=_("Hash"),
     65        widget=forms.TextInput(attrs={'size':60}))
     66    ret = forms.CheckBox(_('Add more'))
     67
    7868class torrent_add:
    7969
    8070    @deco.deluge_page
    8171    def GET(self, name):
    82         return render.torrent_add(AddForm())
     72        return render.torrent_add(AddForm(),OptionsForm())
    8373
    8474    @deco.check_session
     
    110100            do_redirect()
    111101        else:
    112             error_page(_("no data."))
     102            error_page(_("no data, press back button and try again"))
Note: See TracChangeset for help on using the changeset viewer.