E5Network/E5NetworkProxyFactory.py

changeset 319
09f456ec6fcf
parent 317
f6b0163a21be
child 537
72b32daeb8d6
equal deleted inserted replaced
317:f6b0163a21be 319:09f456ec6fcf
112 if scheme != "NoProxy": 112 if scheme != "NoProxy":
113 proxyList[0].setUser( 113 proxyList[0].setUser(
114 Preferences.getUI("ProxyUser/{0}".format(scheme))) 114 Preferences.getUI("ProxyUser/{0}".format(scheme)))
115 proxyList[0].setPassword( 115 proxyList[0].setPassword(
116 Preferences.getUI("ProxyPassword/{0}".format(scheme))) 116 Preferences.getUI("ProxyPassword/{0}".format(scheme)))
117 return proxyList 117 return proxyList
118 else:
119 return [QNetworkProxy(QNetworkProxy.NoProxy)]
118 else: 120 else:
119 if Preferences.getUI("UseHttpProxyForAll"): 121 if Preferences.getUI("UseHttpProxyForAll"):
120 protocol = "Http" 122 protocol = "Http"
121 else: 123 else:
122 protocol = query.protocolTag().capitalize() 124 protocol = query.protocolTag().capitalize()

eric ide

mercurial