Changeset b0a9bf
- Timestamp:
- 02/12/2008 04:53:48 PM (17 years ago)
- Branches:
- 2.0.x, develop, extjs4-port, master
- Children:
- 0b3067
- Parents:
- 9beda7
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
deluge/ui/webui/webui_plugin/torrent_add.py
r9beda7 rb0a9bf 29 29 # this exception statement from your version. If you delete this exception 30 30 # statement from all source files in the program, then also delete it here. 31 31 # 32 32 from webserver_common import ws 33 33 from utils import * … … 35 35 import page_decorators as deco 36 36 import lib.newforms_plus as forms 37 import base64 37 38 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): 39 class OptionsForm(forms.Form): 59 40 download_location = forms.ServerFolder(_("Download Location")) 60 41 compact_allocation = forms.CheckBox(_("Compact Allocation")) … … 76 57 return ws.proxy.get_config() 77 58 59 class 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 78 68 class torrent_add: 79 69 80 70 @deco.deluge_page 81 71 def GET(self, name): 82 return render.torrent_add(AddForm() )72 return render.torrent_add(AddForm(),OptionsForm()) 83 73 84 74 @deco.check_session … … 110 100 do_redirect() 111 101 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.