WebBrowser/Network/NetworkManager.py

changeset 4917
682750cc7bd5
parent 4902
7a49807e493c
child 5365
f0cb73e99e54
child 5369
69705ef2a0af
equal deleted inserted replaced
4915:8081031061a2 4917:682750cc7bd5
241 username, password = dlg.getData() 241 username, password = dlg.getData()
242 auth.setUser(username) 242 auth.setUser(username)
243 auth.setPassword(password) 243 auth.setPassword(password)
244 if Preferences.getUser("SavePasswords"): 244 if Preferences.getUser("SavePasswords"):
245 WebBrowser.WebBrowserWindow.WebBrowserWindow.passwordManager()\ 245 WebBrowser.WebBrowserWindow.WebBrowserWindow.passwordManager()\
246 .setLogin(url, realm, username, password) 246 .setLogin(url, realm, username, password)
247 247
248 def proxyAuthentication(self, requestUrl, auth, proxyHost): 248 def proxyAuthentication(self, requestUrl, auth, proxyHost):
249 """ 249 """
250 Public slot to handle a proxy authentication request. 250 Public slot to handle a proxy authentication request.
251 251
252 @param requestUrl requested URL 252 @param requestUrl requested URL
253 @type QUrl 253 @type QUrl
254 @param auth reference to the authenticator object 254 @param auth reference to the authenticator object
255 @type QAuthenticator 255 @type QAuthenticator
256 @param hostname name of the proxy host 256 @param proxyHost name of the proxy host
257 @type str 257 @type str
258 """ 258 """
259 proxy = QNetworkProxy.applicationProxy() 259 proxy = QNetworkProxy.applicationProxy()
260 if proxy.user() and proxy.password(): 260 if proxy.user() and proxy.password():
261 auth.setUser(proxy.user()) 261 auth.setUser(proxy.user())

eric ide

mercurial