E5Network/E5NetworkProxyFactory.py

changeset 1932
56efb7c1cfca
parent 1509
c0b5e693b0eb
child 1936
536b88d73d53
equal deleted inserted replaced
1930:3ecd42f536fd 1932:56efb7c1cfca
59 if dlg.shallSave(): 59 if dlg.shallSave():
60 scheme = schemeFromProxyType(proxy.type()) 60 scheme = schemeFromProxyType(proxy.type())
61 if scheme and scheme != "NoProxy": 61 if scheme and scheme != "NoProxy":
62 Preferences.setUI("ProxyUser/{0}".format(scheme), username) 62 Preferences.setUI("ProxyUser/{0}".format(scheme), username)
63 Preferences.setUI("ProxyPassword/{0}".format(scheme), password) 63 Preferences.setUI("ProxyPassword/{0}".format(scheme), password)
64 proxy.setUser(username) 64 proxy.setUser(username)
65 proxy.setPassword(password) 65 proxy.setPassword(password)
66 66
67 67
68 class E5NetworkProxyFactory(QNetworkProxyFactory): 68 class E5NetworkProxyFactory(QNetworkProxyFactory):
69 """ 69 """
70 Class implementing a network proxy factory. 70 Class implementing a network proxy factory.

eric ide

mercurial