proxy config

This commit is contained in:
Martijn Voncken 2008-10-26 21:17:48 +00:00
parent 6aae2acbe5
commit 26eb2bbb3d
1 changed files with 13 additions and 1 deletions

View File

@ -95,6 +95,19 @@ class NetworkEnc(config_forms.CfgForm ):
config_page.register('network','encryption', NetworkEnc)
class Proxy(config_forms.CfgForm):
title = _("Proxy")
_type_choices = list(enumerate(
["None", _("Socksv4"), _("Socksv5"), _("Socksv5 W/ Auth"),_("HTTP"), _("HTTP W/ Auth")]))
proxy_type = forms.IntChoiceField(_("Type"), _type_choices)
proxy_port = forms.IntegerField(label= _("Port"),min_value = 0, max_value=65535)
proxy_username = forms.CharField(label= _("Username"))
proxy_password = forms.Password(label= _("Password"))
proxy_server =forms.CharField(label= _("Server"))
config_page.register('network','proxy', Proxy)
class BandwithGlobal(config_forms.CfgForm):
title = _("Global")
@ -193,6 +206,5 @@ class Plugins(forms.Form):
sclient.disable_plugin(p)
plugin_manager.disable_plugin(p)
config_page.register('deluge','plugins', Plugins)